Weekly report in HTML
This commit is contained in:
parent
75eca5ec29
commit
f777b69424
33
templates/week.tmpl
Normal file
33
templates/week.tmpl
Normal file
|
@ -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>
|
Loading…
Reference in a new issue