Weekly report in HTML
[iron-blogger] / templates / week.tmpl
1 <h2>People who posted</h2>
2 <ul>
3 % for u in sorted(good, key=lambda u:u.username):
4 <li><b>${u.username}:</b>
5   <ul>
6  % for p in u.weeks[week]:
7    <li><a href="${p['url']}">${p['title']}</a></li>
8  % endfor
9   </ul>
10 % endfor
11 </ul>
12
13 <h2>People who failed to post</h2>
14 <ul>
15 % for u in sorted(lame, key=lambda u:u.username):
16 <li><b>${u.username}</b></li>
17 % endfor
18 </ul>
19
20 % if skip:
21 <h2>People who have not yet started</h2>
22 <ul>
23 % for u in sorted(skip, key=lambda u:u.username):
24   <li><b>${u.username}</b></li>
25 % endfor
26 </ul>
27 % endif
28
29 <h2>Beer pool:</h2>
30 <table>
31   <tr> <td> This week: </td> <td> $${5 * len(lame)}.00 </td> </tr>
32   <tr> <td> Total: </td> <td> $X.00 </td> </tr>
33 </table>

Benjamin Mako Hill || Want to submit a patch?