X-Git-Url: https://projects.mako.cc/source/iron-blogger/blobdiff_plain/4b123d38b4f031e226e03d3780432f92b153e6e1..5b5742ed69c1ab2de9eeb5e972e5bffc13449529:/templates/week.tmpl?ds=sidebyside
diff --git a/templates/week.tmpl b/templates/week.tmpl
index 4ed842f..dee7ee4 100644
--- a/templates/week.tmpl
+++ b/templates/week.tmpl
@@ -1,43 +1,71 @@
Results for week beginning ${week_start.strftime("%F")}
People who posted
-
+
% for u in sorted(good, key=lambda u:u.username):
-
- ${u.username}:
+
- ${u.username}:
+-
-
+
% endfor
-
+
People who failed to post
% for u in sorted(lame, key=lambda u:u.username):
-- ${u.username}
+- ${u.username}
% endfor
+% if punt:
+People punted for excessive outstanding balances:
+
+% for u in sorted(punt):
+- ${u}
+% endfor
+
+% endif
+
% if skip:
People who have not yet started
% for u in sorted(skip, key=lambda u:u.username):
- - ${u.username}
+ - ${u.username}
% endfor
% endif
Beer pool:
- This week: | $${5 * len(lame)}.00 |
- Total: | $${pool}.00 |
- Paid: | $${paid}.00 |
+ This week: | ${currency}${fine * len(lame)} |
+ Total: | ${currency}${pool} |
+ Paid: | ${currency}${paid} |
Debts:
-
+<% i = 0 %>
+
% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
-${u} | ${v} |
+% if i % 3 == 0:
+\
+% endif
+<% i += 1 %>\
+${u} | ${currency}${v} | \
+% if i % 3 == 0:
+
+%endif
% endfor
+% if i % 3 != 0:
+
+%endif
+
+Previously Punted (pay $30 to return):
+
+% for (u) in sorted(punted, key=lambda p:p.username):
+- ${u.username} (${u.end})
+% endfor
+