render.py: Make pool size available to templates
[iron-blogger] / templates / week.tmpl
index 3941c6349699f862de101514df7d20d260ccfeb0..95ff25664ee556630909ed724b8f6b3e8c557048 100644 (file)
@@ -4,9 +4,10 @@
 <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 +30,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?