]> projects.mako.cc - iron-blogger/commitdiff
Weekly report in HTML
authorNelson Elhage <nelhage@mit.edu>
Wed, 30 Dec 2009 05:04:30 +0000 (00:04 -0500)
committerNelson Elhage <nelhage@mit.edu>
Wed, 30 Dec 2009 05:04:30 +0000 (00:04 -0500)
templates/week.tmpl [new file with mode: 0644]

diff --git a/templates/week.tmpl b/templates/week.tmpl
new file mode 100644 (file)
index 0000000..3941c63
--- /dev/null
@@ -0,0 +1,33 @@
+<h2>People who posted</h2>
+<ul>
+% for u in sorted(good, key=lambda u:u.username):
+<li><b>${u.username}:</b>
+  <ul>
+ % for p in u.weeks[week]:
+   <li><a href="${p['url']}">${p['title']}</a></li>
+ % endfor
+  </ul>
+% endfor
+</ul>
+
+<h2>People who failed to post</h2>
+<ul>
+% for u in sorted(lame, key=lambda u:u.username):
+<li><b>${u.username}</b></li>
+% endfor
+</ul>
+
+% if skip:
+<h2>People who have not yet started</h2>
+<ul>
+% for u in sorted(skip, key=lambda u:u.username):
+  <li><b>${u.username}</b></li>
+% endfor
+</ul>
+% endif
+
+<h2>Beer pool:</h2>
+<table>
+  <tr> <td> This week: </td> <td> $${5 * len(lame)}.00 </td> </tr>
+  <tr> <td> Total: </td> <td> $X.00 </td> </tr>
+</table>

Benjamin Mako Hill || Want to submit a patch?