root/yapcasia2008/actdocs/templates/user/main

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

add user id to main

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