root/yapcasia2008/actdocs/templates/user/main

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

Add X to unpaid users

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