]> projects.mako.cc - iron-blogger/blobdiff - templates/week.tmpl
Update for 2012-07-09
[iron-blogger] / templates / week.tmpl
index e2631c4a303e9901208d318a2974ce1b68c4011b..4df9ca6756bf7b330418483fb017d5d5bb3219ad 100644 (file)
@@ -1,34 +1,71 @@
+Results for week beginning ${week_start.strftime("%F")}
 <h2>People who posted</h2>
-<ul>
+<dl>
 % for u in sorted(good, key=lambda u:u.username):
-<li><b>${u.username}:</b>
+<dt><span class="user">${u.username}:</span></dt>
+<dd>
   <ul>
  % for p in u.weeks[week]:
    <li><a href="${p['url']}">${p['title'] or "[untitled post]"}</a></li>
  % endfor
   </ul>
-</li>
+</dd>
 % endfor
-</ul>
+</dl>
 
 <h2>People who failed to post</h2>
 <ul>
 % for u in sorted(lame, key=lambda u:u.username):
-<li><b>${u.username}</b></li>
+<li class="user">${u.username}</li>
 % endfor
 </ul>
 
+% if punt:
+<h2>People punted for excessive outstanding balances:</h2>
+<ul>
+% for u in sorted(punt):
+<li class="user">${u}</li>
+% endfor
+</ul>
+% endif
+
 % 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>
+  <li class="user">${u.username}</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>
+  <tr> <td> This week: </td> <td> $${5 * len(lame)} </td> </tr>
+  <tr> <td> Total: </td> <td> $${pool} </td> </tr>
+  <tr> <td> Paid: </td> <td> $${paid} </td> </tr>
 </table>
+
+<h2>Debts:</h2>
+<% i = 0 %>
+<table class="debts">
+% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
+% if i % 3 == 0:
+<tr>\
+% endif
+<% i += 1 %>\
+<td class="user">${u}</td> <td class="money">$${v}</td>\
+% if i % 3 == 0:
+</tr>
+%endif
+% endfor
+% if i % 3 != 0:
+</tr>
+%endif
+</table>
+
+<h2>Previously Punted (pay $30 to return):</h2>
+<ul>
+% for (u) in sorted(punted, key=lambda p:p.username):
+<li>${u.username} (${u.end})</li>
+% endfor
+</ul>
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?