]> projects.mako.cc - iron-blogger/blob - templates/week.tmpl
4ed842fcbb886233507de7c17bf315dc07e84ea0
[iron-blogger] / templates / week.tmpl
1 Results for week beginning ${week_start.strftime("%F")}
2 <h2>People who posted</h2>
3 <ul>
4 % for u in sorted(good, key=lambda u:u.username):
5 <li><b>${u.username}:</b>
6   <ul>
7  % for p in u.weeks[week]:
8    <li><a href="${p['url']}">${p['title'] or "[untitled post]"}</a></li>
9  % endfor
10   </ul>
11 </li>
12 % endfor
13 </ul>
14
15 <h2>People who failed to post</h2>
16 <ul>
17 % for u in sorted(lame, key=lambda u:u.username):
18 <li><b>${u.username}</b></li>
19 % endfor
20 </ul>
21
22 % if skip:
23 <h2>People who have not yet started</h2>
24 <ul>
25 % for u in sorted(skip, key=lambda u:u.username):
26   <li><b>${u.username}</b></li>
27 % endfor
28 </ul>
29 % endif
30
31 <h2>Beer pool:</h2>
32 <table>
33   <tr> <td> This week: </td> <td> $${5 * len(lame)}.00 </td> </tr>
34   <tr> <td> Total: </td> <td> $${pool}.00 </td> </tr>
35   <tr> <td> Paid: </td> <td> $${paid}.00 </td> </tr>
36 </table>
37
38 <h2>Debts:</h2>
39 <table>
40 % for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
41 <tr><td>${u}</td> <td>${v}</td></tr>
42 % endfor
43 </table>

Benjamin Mako Hill || Want to submit a patch?