root/yapcasia2008/actdocs/templates/user/main

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

merged test to prod

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 [% IF global.request.conference %]
13  [% IF global.request.user.has_registered %]
14   [% IF global.request.user.has_paid %] <p>
15   {{You have purchased your conference ticket:}}
16  </p>
17  <p>
18   <blockquote>
19     {{Order number}}: <strong>[% order.order_id %]</strong><br />
20     {{Payment date}}: <strong>[% date_format(order.datetime, 'datetime_full') %] GMT</strong><br />
21     {{Amount paid}}: <strong>[% order.amount %] [% order.currency %][% IF order.price %] ([% order.price %])[% END %]</strong>
22   </blockquote/>
23  </p>
24  [% IF global.config.payment_invoices %]
25  <p>[% loc("Download your invoice", make_uri_info('invoice', order.order_id)) %]
26  </p>
27  [% END %]
28   [% ELSIF global.config.payment_type != "NONE" %]
29  <p>
30   {{You have not bought your conference ticket yet.}}
31   [% IF global.config.payment_open %]
32    {{Please consider doing so using our online payment system.}}
33    [% ELSE %]
34    {{Please consider doing so once our online payment system is ready.}}
35   [% END %]
36  </p>
37  [% END %]
38  [% ELSIF !global.config.closed %]
39   [% loc("You did not register for this conference", make_uri('register')) %]
40  [% END %]
41 [% ELSE %]
42 <!-- no conference at all -->
43 [% END %]
44
45 <p><b>{{You can:}}</b></p>
46    <ul>
47    [% IF global.request.user.has_registered %]
48     [% IF global.request.conference
49        AND global.config.payment_type != "NONE"
50        AND global.config.payment_open
51        AND NOT global.request.user.has_paid %]
52     <li><a href="[% make_uri('purchase') %]">{{purchase your conference ticket}}</a><br />
53     </li>
54     [% END %]
55    [% ELSIF !global.config.closed %]
56     <li><a href="[% make_uri('register') %]">{{register for this conference}}</a><br />
57     </li>
58    [% END %]
59     <li><a href="[% make_uri('change') %]">{{update your information}}</a><br />
60     </li>
61     <li><a href="[% make_uri('photo') %]">{{manage your photo}}</a><br />
62     </li>
63     <li><a href="[% make_uri('changepwd') %]">{{change your password}}</a>
64     </li>
65     [% IF global.request.conference
66        AND talks.size %]
67         <li>{{see your talks (accepted talks are shown in bold type)}}:
68           <br />
69           <ul>
70            [% FOR t = talks %]
71              <li>[% talk_link(t) %] [% talk_modify_link(t) %]</li>
72            [% END %]
73           </ul>
74         </li>
75       [% END %]
76     [% IF global.config.talks_submissions_open
77        AND global.request.user.has_registered %]
78       <li><a href="[% make_uri('newtalk') %]">{{submit a talk}}</a><br />
79       </li>
80     [% END %]
81    <li><a href="[% make_uri('logout') %]">{{log out}}</a></li>
82    [% IF can_unregister %]
83    <li><a href="[% make_uri('unregister') %]">[% loc("unregister from <this conference>", global.conference.name) %]</a></li>
84    [% END %]
85    </ul>
86
87 [% IF conferences.size %]
88 <p><b>{{Other Act conferences:}}</b></p>
89 <ul>
90 [% FOREACH c = conferences %]<li><a href="[% c.url %]">[% c.name %]</a>
91 [% SWITCH c.participation %]
92  [% CASE 'past' %]
93  {{(You were there)}}
94  [% CASE 'now' %]
95  {{(You are there)}}
96  [% CASE 'future' %]
97  {{(You will be there)}}
98 [% END %]
99 </li>[% END %]
100 </ul>
101 [% END %]
102
103 [% END %]
Note: See TracBrowser for help on using the browser.