]> projects.mako.cc - iron-blogger/blob - templates/users.tmpl
Update for 2012-10-08
[iron-blogger] / templates / users.tmpl
1 <h1>Participants in Good Standing</h1>
2 <table id='participants'>
3         <tr>
4           <th>Who</th>
5           <th>Blog link</th>
6           <th>Start Week</th>
7         </tr>
8 % for u in sorted(userlist, key=lambda u:u.username):
9     <% if u.end: continue %>
10         <tr>
11           <td><tt> ${u.username} </tt></td>
12           <td>
13            % if u.links:
14             % for a in u.links:
15            <a href="${a[1]}">${a[0]}</a>
16             % endfor
17            % else:
18              Undecided
19            % endif
20           </td>
21           <td> ${u.start} </td>
22         </tr>
23 % endfor
24       </table>
25
26 % if any(map(lambda u: u.end, userlist)):
27 <h1>Former Participants Punted for Lack of Payment</h1>
28
29       <table id='participants'>
30         <tr>
31           <th>Who</th>
32           <th>Blog link</th>
33           <th>Start Week</th>
34           <th>End Week</th>
35         </tr>
36 % for u in sorted(userlist, key=lambda u:u.username):
37     <% if not u.end: continue %>
38         <tr>
39           <td><tt> ${u.username} </tt></td>
40           <td>
41            % if u.links:
42             % for a in u.links:
43            <a href="${a[1]}">${a[0]}</a>
44             % endfor
45            % else:
46              Undecided
47            % endif
48           </td>
49           <td> ${u.start} </td>
50           <td> ${u.end} </td>
51         </tr>
52 % endfor
53       </table>
54
55 % endif

Benjamin Mako Hill || Want to submit a patch?