98 lines
2.4 KiB
Cheetah
98 lines
2.4 KiB
Cheetah
Zusammenfassung für die Woche ab ${week_start.strftime("%d.%m.%Y")}:
|
|
<h3>Die Fleißigen:</h3>
|
|
<dl>
|
|
% for u in sorted(good, key=lambda u:u.name[u.name.rfind(' '):].lower()):
|
|
<dt><span class="user"><strong>${u.name} </strong> \
|
|
% if u.twitter != False:
|
|
@<a href="http://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 "[ohne Titel]"}</a></li>
|
|
% endfor
|
|
</ul>
|
|
</dd>
|
|
% endfor
|
|
</dl>
|
|
|
|
<h3>Die Faulen:</h3>
|
|
<ul>
|
|
% for u in sorted(lame, key=lambda u:u.name[u.name.rfind(' '):].lower()):
|
|
<li class="user"><strong>${u.name} </strong> \
|
|
% if u.twitter != False:
|
|
@<a href="http://twitter.com/${u.username}">${u.username}</a> \
|
|
% endif
|
|
</li>
|
|
% endfor
|
|
</ul>
|
|
|
|
% if punt:
|
|
<h3>Ausgeschieden wegen zu hoher Schulden:</h3>
|
|
<ul>
|
|
% for u in sorted(punt):
|
|
<li class="user">${u}</li>
|
|
% endfor
|
|
</ul>
|
|
% endif
|
|
|
|
% if skip:
|
|
<h3>Noch nicht dabei:</h3>
|
|
<ul>
|
|
% for u in sorted(skip, key=lambda u:u.name[u.name.rfind(' '):].lower()):
|
|
<li class="user"><strong>${u.name} </strong> \
|
|
% if u.twitter != False:
|
|
@<a href="http://twitter.com/${u.username}">${u.username}</a> \
|
|
% endif
|
|
</li>
|
|
% endfor
|
|
</ul>
|
|
% endif
|
|
|
|
% if skipped_users:
|
|
<h3>Gerade im Urlaub:</h3>
|
|
<ul>
|
|
% for u in sorted(skipped_users, key=lambda u:u.name[u.name.rfind(' '):].lower()):
|
|
<li class="user"><strong>${u.name} </strong> \
|
|
% if u.twitter != False:
|
|
@<a href="http://twitter.com/${u.username}">${u.username}</a> \
|
|
% endif
|
|
</li>
|
|
% endfor
|
|
</ul>
|
|
% endif
|
|
|
|
<h3>Kasse:</h3>
|
|
<table style="border-left-style:none; border-right-style:none;">
|
|
<tr> <td> Diese Woche: </td> <td> ${5 * len(lame)} € </td> </tr>
|
|
<tr> <td> Insgesamt: </td> <td> ${pool} €</td> </tr>
|
|
<tr> <td> Beglichen: </td> <td> ${paid} €</td> </tr>
|
|
<tr> <td> verfeiert: </td> <td> ${event} €</td> </tr>
|
|
</table>
|
|
|
|
<h3>Schulden:</h3>
|
|
<% 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">€ ${v}</td>\
|
|
% if i % 3 == 0:
|
|
</tr>
|
|
%endif
|
|
% endfor
|
|
% if i % 3 != 0:
|
|
</tr>
|
|
%endif
|
|
</table>
|
|
|
|
<h3>Zuvor ausgeschieden (müssen 30 € für den Wiedereinstieg bezahlen):</h3>
|
|
<ul>
|
|
% for (u) in sorted(punted, key=lambda p:p.name[p.name.rfind(' '):].lower()):
|
|
<li>${u.name} (seit ${u.end_de})</li>
|
|
% endfor
|
|
</ul>
|