118 lines
2.8 KiB
Cheetah
118 lines
2.8 KiB
Cheetah
Zusammenfassung der Woche ab ${week_start.strftime("%d.%m.%Y")}:
|
|
<h3>Die Fleißigen:</h3>
|
|
<dl>
|
|
% for u in sorted(userlist, key=lambda u:u.name[u.name.rfind(' '):].lower()):
|
|
% for g in u.goodblogs:
|
|
% for b in u.links:
|
|
% if b[0] == g:
|
|
<dt><span class="user"><strong>${u.name} </strong> \
|
|
% if u.twitter != False:
|
|
(@<a href="http://twitter.com/${u.username}">${u.username}</a>) \
|
|
% endif
|
|
% if len(u.links) != 1:
|
|
in <a href="${b[2]}">${b[1]}</a> \
|
|
% endif
|
|
:</span></dt>
|
|
<dd>
|
|
<ul>
|
|
% for p in u.posts[g][week]:
|
|
<li><a href="${p['url']}">${p['title'] or "[ohne Titel]"}</a></li>
|
|
% endfor
|
|
</ul>
|
|
</dd>
|
|
% endif
|
|
% endfor
|
|
% endfor
|
|
% endfor
|
|
</dl>
|
|
|
|
<h3>Die Faulen:</h3> <% lame=0 %>
|
|
<ul>
|
|
% for u in sorted(userlist, key=lambda u:u.name[u.name.rfind(' '):].lower()):
|
|
% for g in u.lameblogs:
|
|
% for b in u.links:
|
|
% if b[0] == g:
|
|
<li class="user"><strong>${u.name} </strong> <% lame+=1 %> \
|
|
% if u.twitter != False:
|
|
(@<a href="http://twitter.com/${u.username}">${u.username}</a>) \
|
|
% endif
|
|
% if len(u.links) != 1:
|
|
in <a href="${b[2]}">${b[1]}</a> \
|
|
% endif
|
|
</li>
|
|
% endif
|
|
% endfor
|
|
% endfor
|
|
% 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 * 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>
|
|
|
|
% if punted:
|
|
<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>
|
|
% endif
|