root/yapcasia2008/actdocs/templates/user/main

Revision 2691 (checked in by miyagawa, 12 years ago)

add access code

Line 
1 [% WRAPPER ui title = loc("Main private page") %]
2
3 <p>
4  {{This is your personal page.}}
5  [% IF global.request.conference %]
6  [% loc("to <this conference>", global.conference.name) %]
7  [% ELSE %]
8  {{to Act-enabled conferences.}}
9  [% END %]
10 </p>
11
12 [% # let's do the math
13   USE formatter = format('%04d%04d');                                                                                       
14   SET n = global.request.user.user_id;
15   c =  (3 * n * n - 2 * (n % 9) + 7) % 10000;
16   SET ac = d(n, c);
17 %]
18 <style>
19 .checkin-code { font-size: 150%; font-weight: bold }
20 </style>
21
22 [% IF global.request.conference %]
23  [% IF global.request.user.has_registered %]
24  <p><t>
25  <en>Your check-in code for the conference is <span class="checkin-code">[% ac %]</span>. Print this page and bring to the conference for the quick check-in.</en>
26  <ja>あなたのカンファレンスアクセスコードは <span class="checkin-code">[% ac %]</span> です。このページをプリントアウトしてお持ちください。</ja>
27  </t></p>
28  
29 <div style="text-align:right"><img src="http://blog.bulknews.net/yapc/qr.cgi?token=[% ac %]" /></div>
30  
31   [% IF global.request.user.has_paid %] <p>
32   {{You have purchased your conference ticket:}}
33  </p>
34  <p>
35   <blockquote>
36     {{Order number}}: <strong>[% order.order_id %]</strong><br />
37     {{Payment date}}: <strong>[% date_format(order.datetime, 'datetime_full') %] GMT</strong><br />
38     {{Amount paid}}: <strong>[% order.amount %] [% order.currency %][% IF order.price %] ([% order.price %])[% END %]</strong>
39   </blockquote/>
40  </p>
41  [% IF global.config.payment_invoices %]
42  <p>[% loc("Download your invoice", make_uri_info('invoice', order.order_id)) %]
43  </p>
44  [% END %]
45   [% ELSIF global.config.payment_type != "NONE" %]
46  <p>
47   {{You have not bought your conference ticket yet.}}
48   [% IF global.config.payment_open %]
49    {{Please consider doing so using our online payment system.}}
50    [% ELSE %]
51    {{Please consider doing so once our online payment system is ready.}}
52   [% END %]
53  </p>
54  [% END %]
55  [% ELSIF !global.config.closed %]
56   [% loc("You did not register for this conference", make_uri('register')) %]
57  [% END %]
58 [% ELSE %]
59 <!-- no conference at all -->
60 [% END %]
61
62 <p><b>{{You can:}}</b></p>
63    <ul>
64    [% IF global.request.user.has_registered %]
65     [% IF global.request.conference
66        AND global.config.payment_type != "NONE"
67        AND global.config.payment_open
68        AND NOT global.request.user.has_paid %]
69     <li><a href="[% make_uri('purchase') %]">{{purchase your conference ticket}}</a><br />
70     </li>
71     [% END %]
72    [% ELSIF !global.config.closed %]
73     <li><a href="[% make_uri('register') %]">{{register for this conference}}</a><br />
74     </li>
75    [% END %]
76     <li><a href="[% make_uri('change') %]">{{update your information}}</a><br />
77     </li>
78     <li><a href="[% make_uri('photo') %]">{{manage your photo}}</a><br />
79     </li>
80     <li><a href="[% make_uri('changepwd') %]">{{change your password}}</a>
81     </li>
82     [% IF global.request.conference
83        AND talks.size %]
84         <li>{{see your talks (accepted talks are shown in bold type)}}:
85           <br />
86           <ul>
87            [% FOR t = talks %]
88              <li>[% talk_link(t) %] [% talk_modify_link(t) %]</li>
89            [% END %]
90           </ul>
91         </li>
92       [% END %]
93     [% IF global.config.talks_submissions_open
94        AND global.request.user.has_registered %]
95       <li><a href="[% make_uri('newtalk') %]">{{submit a talk}}</a><br />
96       </li>
97     [% END %]
98    <li><a href="[% make_uri('logout') %]">{{log out}}</a></li>
99    [% IF can_unregister %]
100    <li><a href="[% make_uri('unregister') %]">[% loc("unregister from <this conference>", global.conference.name) %]</a></li>
101    [% END %]
102    </ul>
103
104 [% IF conferences.size %]
105 <p><b>{{Other Act conferences:}}</b></p>
106 <ul>
107 [% FOREACH c = conferences %]<li><a href="[% c.url %]">[% c.name %]</a>
108 [% SWITCH c.participation %]
109  [% CASE 'past' %]
110  {{(You were there)}}
111  [% CASE 'now' %]
112  {{(You are there)}}
113  [% CASE 'future' %]
114  {{(You will be there)}}
115 [% END %]
116 </li>[% END %]
117 </ul>
118 [% END %]
119
120 [% END %]
Note: See TracBrowser for help on using the browser.