]> projects.mako.cc - iron-blogger/blobdiff - templates/week.tmpl
Quentin actually posted
[iron-blogger] / templates / week.tmpl
index 3941c6349699f862de101514df7d20d260ccfeb0..68f6474dc3c00469ed99bee8d516e941aba79683 100644 (file)
@@ -1,12 +1,14 @@
+Results for week beginning ${week_start.strftime("%F")}
 <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>
+   <li><a href="${p['url']}">${p['title'] or "[untitled post]"}</a></li>
  % endfor
   </ul>
+</li>
 % endfor
 </ul>
 
@@ -29,5 +31,5 @@
 <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>
+  <tr> <td> Total: </td> <td> ${pool}.00 </td> </tr>
 </table>

Benjamin Mako Hill || Want to submit a patch?