root/yapcasia2008/actdocs/templates/core/talk/schedule

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

merged test to prod

Line 
1 [% IF not ( global.request.user.is_orga
2          or global.request.user.is_staff
3          or global.config.talks_show_schedule ) %]
4 {{The schedule is not ready to be seen.}}
5 [% ELSE %]
6 [% IF todo.size %]
7
8 <p>{{The time and place of the following talks haven't been decided yet.}}</p>
9
10 <table>
11     <thead>
12         <tr>
13             <th>{{Speaker}}</th>
14             <th>{{Talk title}}</th>
15         [% IF global.config.talks_languages %]<th>{{Language}}</th>[% END %]
16             <th>{{Duration}}</th>
17         </tr>
18     </thead>       
19     <tbody>
20     [% FOREACH t IN todo %]
21         <tr>
22             <td><a href="[% make_uri_info('user', t.user.user_id) %]">[% user_info(t.user) %]</a></td>
23             <td>
24             [% IF t.type == 'Act::Event' %]
25                 [% event_link(t) %]
26                 [% event_modify_link(t) %]
27             [% ELSE %]
28                 [% talk_confirmed_link(t) %]
29                 [% talk_modify_link(t) %]
30             [% END %]
31             </td>
32         [% IF global.config.talks_languages %]
33             <td>[% global.config.talks_languages.${t.lang} %]</td>
34         [% END %]
35             <td>[% t.duration %] {{minutes}}</td>
36         </tr>
37     [% END %]
38     </tbody>
39 </table>
40 [% END %]
41
42 <p>{{Talks in bold type have been confirmed by their respective speakers.}}</p>
43
44 [% FOREACH d IN table.keys.sort %]
45 [% date = d.replace('$', ' 00:00:00' ) %]
46 <div class="section schedule" id="[% d %]">
47     <h3>[% date_format(date, 'date_full') | ucfirst %]</h3>
48     <ul>
49         <li class="ical"><a href="[% make_uri('timetable.ics') %]">{{iCal export}}</a></li>
50     </ul>
51     <table>
52         <thead>
53             <tr>
54                 <th>{{Time}}</th>
55             [% FOREACH r IN room.keys.sort %]
56                 <th colspan="[% width.$r.$d %]">[% global.config.rooms.$r %]</th>
57             [% END %]
58             </tr>
59         </thead>
60         <tbody>
61         [% FOREACH row IN table.$d %]
62             <tr>
63             [% FOREACH col IN row %]
64             [% IF loop.first %]
65                 <th>[% col %]</th>
66             [% ELSE %]
67                 <td [% IF col.height AND col.height > 1 %]rowspan="[% col.height %]"[% END %] [% IF col.room %]class="[% col.room %]"[% IF col.room.match('^(?:out|venue)$') %] colspan="[% maxwidth.$d %]"[% END %][% END %]>[% timeslot(col) %]</td>
68             [% END %]
69             [% END %]
70             </tr>
71         [% END %]
72         </tbody>
73     </table>
74 </div>
75 [% END %]
76 [% END %]
Note: See TracBrowser for help on using the browser.