projects
/
iron-blogger
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
render.py: Make pool size available to templates
[iron-blogger]
/
templates
/
week.tmpl
diff --git
a/templates/week.tmpl
b/templates/week.tmpl
index 7de8f654a763e041177a0f6dd55de4e5a4f8fdd4..95ff25664ee556630909ed724b8f6b3e8c557048 100644
(file)
--- a/
templates/week.tmpl
+++ b/
templates/week.tmpl
@@
-4,7
+4,7
@@
<li><b>${u.username}:</b>
<ul>
% for p in u.weeks[week]:
<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>
</li>
@@
-30,5
+30,5
@@
<h2>Beer pool:</h2>
<table>
<tr> <td> This week: </td> <td> $${5 * len(lame)}.00 </td> </tr>
<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>
</table>
Benjamin Mako Hill
||
Want to submit a patch?