Move display mangling to templates, add read API
[gruntmaster-page.git] / tmpl / ct.en
1 <tmpl_if running>
2 <h1>Running contests</h1>
3 <table border class="table table-bordered table-striped">
4 <thead>
5 <tr><th>Name<th>Start date<th>End date<th>Owner
6 <tbody>
7 <tmpl_loop running><tr><td><a href="<tmpl_var id>/"><tmpl_var name></a>
8 <td><%perl __OUT__ POSIX::strftime '%c', localtime __CURRENT__->{start}; %>
9 <td><%perl __OUT__ POSIX::strftime '%c', localtime __CURRENT__->{end}; %>
10 <td><tmpl_var owner>
11 </tmpl_loop>
12 </table>
13 </tmpl_if>
14
15 <tmpl_if pending>
16 <h1>Pending contests</h1>
17 <table border class="table table-bordered table-striped">
18 <thead>
19 <tr><th>Name<th>Start date<th>End date<th>Owner
20 <tbody>
21 <tmpl_loop pending><tr><td><a href="<tmpl_var id>/"><tmpl_var name></a>
22 <td><%perl __OUT__ POSIX::strftime '%c', localtime __CURRENT__->{start}; %>
23 <td><%perl __OUT__ POSIX::strftime '%c', localtime __CURRENT__->{end}; %>
24 <td><tmpl_var owner>
25 </tmpl_loop>
26 </table>
27 </tmpl_if>
28
29 <tmpl_if finished>
30 <h1>Finished contests</h1>
31 <table border class="table table-bordered table-striped">
32 <thead>
33 <tr><th>Name<th>Start date<th>End date<th>Owner
34 <tbody>
35 <tmpl_loop finished><tr><td><a href="<tmpl_var id>/"><tmpl_var name></a>
36 <td><%perl __OUT__ POSIX::strftime '%c', localtime __CURRENT__->{start}; %>
37 <td><%perl __OUT__ POSIX::strftime '%c', localtime __CURRENT__->{end}; %>
38 <td><tmpl_var owner>
39 </tmpl_loop>
40 </table>
41 </tmpl_if>
This page took 0.0228 seconds and 4 git commands to generate.