iron-blogger/templates/week.tmpl
Marcus -Chaosblog 9eda102005 added skipped weeks and punt marking
removed duplicate colon
2012-08-13 16:23:22 +02:00

97 lines
2.3 KiB
Cheetah

Results for week beginning ${week_start.strftime("%F")}
<h2>Who posted:</h2>
<dl>
% for u in sorted(good, key=lambda u:u.username):
<dt><span class="user"><strong>${u.name} </strong> \
% if u.twitter != False:
<a href="https://twitter.com/#!/${u.username}">@${u.username}</a> \
% endif
:</span></dt>
<dd>
<ul>
% for p in u.weeks[week]:
<li><a href="${p['url']}">${p['title'] or "[untitled post]"}</a></li>
% endfor
</ul>
</dd>
% endfor
</dl>
<h2>Slackers:</h2>
<ul>
% for u in sorted(lame, key=lambda u:u.username):
<li class="user"><strong>${u.name} </strong> \
% if u.twitter != False:
<a href="https://twitter.com/#!/${u.username}">@${u.username}</a> \
% endif
</li>
% endfor
</ul>
% if punt:
<h2>Who was punted for outstanding balances:</h2>
<ul>
% for u in sorted(punt):
<li class="user">${u}</li>
% endfor
</ul>
% endif
% if skip:
<h2>Who haven't started yet:</h2>
<ul>
% for u in sorted(skip, key=lambda u:u.username):
<li class="user"><strong>${u.name} </strong> \
% if u.twitter != False:
- <a href="https://twitter.com/#!/${u.username}">@${u.username}</a> \
% endif
</li>
% endfor
</ul>
% endif
% if skipped_users:
<h2>Who is currently skipped:</h2>
<ul>
% for u in sorted(skipped_users, key=lambda u:u.username):
<li class="user"><strong>${u.name} </strong> \
% if u.twitter != False:
- <a href="https://twitter.com/#!/${u.username}">@${u.username}</a> \
% endif
</li>
% endfor
</ul>
% endif
<h2>Beer fund:</h2>
<table style="border-left-style:none; border-right-style:none;">
<tr> <td> This week: </td> <td> &euro; ${5 * len(lame)} </td> </tr>
<tr> <td> Total: </td> <td> &euro; ${pool} </td> </tr>
<tr> <td> Paid: </td> <td> &euro; ${paid} </td> </tr>
<tr> <td> Events: </td> <td> &euro; ${event} </td> </tr>
</table>
<h2>Debts:</h2>
<% i = 0 %>
<table class="debts" style="border-left-style:none; border-right-style:none;">
% 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">&euro; ${v}</td>\
% if i % 3 == 0:
</tr>
%endif
% endfor
% if i % 3 != 0:
</tr>
%endif
</table>
<h2>Previously Punted (pay &euro;30 to return):</h2>
<ul>
% for (u) in sorted(punted, key=lambda p:p.username):
<li>${u.username} (${u.end})</li>
% endfor
</ul>