root/yapcasia2008/actdocs/templates/user/main

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

move

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