root/yapcasia2008/actdocs/templates/user/main

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

update layout

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