]> projects.mako.cc - iron-blogger/blob - templates/week.tmpl
added hannah hildreth
[iron-blogger] / templates / week.tmpl
1 Results for week beginning ${week_start.strftime("%F")}
2 <h2>People who posted</h2>
3 <dl>
4 % for u in sorted(good, key=lambda u:u.username):
5 <dt><span class="user">${u.username}:</span></dt>
6 <dd>
7   <ul>
8  % for p in u.weeks[week]:
9    <li><a href="${p['url']}">${p['title'] or "[untitled post]"}</a></li>
10  % endfor
11   </ul>
12 </dd>
13 % endfor
14 </dl>
15
16 <h2>People who failed to post</h2>
17 <ul>
18 % for u in sorted(lame, key=lambda u:u.username):
19 <li class="user">${u.username}</li>
20 % endfor
21 </ul>
22
23 % if punt:
24 <h2>People punted for excessive outstanding balances:</h2>
25 <ul>
26 % for u in sorted(punt):
27 <li class="user">${u}</li>
28 % endfor
29 </ul>
30 % endif
31
32 % if skip:
33 <h2>People who have not yet started</h2>
34 <ul>
35 % for u in sorted(skip, key=lambda u:u.username):
36   <li class="user">${u.username}</li>
37 % endfor
38 </ul>
39 % endif
40
41 <h2>Beer pool:</h2>
42 <table>
43   <tr> <td> This week: </td> <td> $${5 * len(lame)} </td> </tr>
44   <tr> <td> Total: </td> <td> $${pool} </td> </tr>
45   <tr> <td> Paid: </td> <td> $${paid} </td> </tr>
46 </table>
47
48 <h2>Debts:</h2>
49 <% i = 0 %>
50 <table class="debts">
51 % for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
52 % if i % 3 == 0:
53 <tr>\
54 % endif
55 <% i += 1 %>\
56 <td class="user">${u}</td> <td class="money">$${v}</td>\
57 % if i % 3 == 0:
58 </tr>
59 %endif
60 % endfor
61 % if i % 3 != 0:
62 </tr>
63 %endif
64 </table>
65
66 <h2>Previously Punted (pay $30 to return):</h2>
67 <ul>
68 % for (u) in sorted(punted, key=lambda p:p.username):
69 <li>${u.username} (${u.end})</li>
70 % endfor
71 </ul>

Benjamin Mako Hill || Want to submit a patch?