iron-blogger/templates/week.tmpl

123 lines
3.0 KiB
Cheetah
Raw Permalink Normal View History

2012-10-17 11:39:34 +00:00
Zusammenfassung der Woche ab ${week_start.strftime("%d.%m.%Y")}
2012-09-29 20:50:30 +00:00
<h3>Die Flei&szlig;igen:</h3>
2010-05-24 01:08:25 +00:00
<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>
2010-05-24 01:08:25 +00:00
<dd>
2014-04-12 22:18:50 +00:00
<% pc=0 %><ul>
% for p in sorted(u.posts[g][week], key = lambda p:p['date']):
% if pc < 10 or len(u.posts[g][week]) == 11:
2014-04-12 22:18:50 +00:00
<% pc+=1 %><li><a href="${p['url']}">${p['title'] or "[ohne Titel]"}</a></li>
%endif
2009-12-30 05:04:30 +00:00
% endfor
% if len(u.posts[g][week]) > 11:
<li>und <a href="${b[2]}">${len(u.posts[g][week])-10} weitere Artikel</a>...</li>
2014-04-12 22:18:50 +00:00
% endif
2009-12-30 05:04:30 +00:00
</ul>
2010-05-24 01:08:25 +00:00
</dd>
% endif
% endfor
% endfor
2009-12-30 05:04:30 +00:00
% endfor
2010-05-24 01:08:25 +00:00
</dl>
2009-12-30 05:04:30 +00:00
<h3>Die Faulen:</h3> <% lame=0 %>
2009-12-30 05:04:30 +00:00
<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:
2012-10-10 06:19:55 +00:00
(@<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
2009-12-30 05:04:30 +00:00
% endfor
</ul>
2010-06-01 00:54:47 +00:00
% if punt:
2012-09-29 20:50:30 +00:00
<h3>Ausgeschieden wegen zu hoher Schulden:</h3>
2010-06-01 00:54:47 +00:00
<ul>
% for u in sorted(punt):
<li class="user">${u}</li>
% endfor
</ul>
% endif
2009-12-30 05:04:30 +00:00
% if skip:
2012-09-29 20:50:30 +00:00
<h3>Noch nicht dabei:</h3>
2009-12-30 05:04:30 +00:00
<ul>
2012-09-29 20:50:30 +00:00
% for u in sorted(skip, key=lambda u:u.name[u.name.rfind(' '):].lower()):
<li class="user"><strong>${u.name} </strong> \
2012-08-13 09:27:39 +00:00
% if u.twitter != False:
2012-10-10 06:19:55 +00:00
(@<a href="http://twitter.com/${u.username}">${u.username}</a>) \
2012-08-13 09:27:39 +00:00
% endif
</li>
% endfor
</ul>
% endif
% if skipped_users:
2012-09-29 20:50:30 +00:00
<h3>Gerade im Urlaub:</h3>
2012-08-13 09:27:39 +00:00
<ul>
2012-09-29 20:50:30 +00:00
% for u in sorted(skipped_users, key=lambda u:u.name[u.name.rfind(' '):].lower()):
2012-08-13 09:27:39 +00:00
<li class="user"><strong>${u.name} </strong> \
% if u.twitter != False:
2012-10-10 06:19:55 +00:00
(@<a href="http://twitter.com/${u.username}">${u.username}</a>) \
% endif
</li>
2009-12-30 05:04:30 +00:00
% endfor
</ul>
% endif
2012-09-29 20:50:30 +00:00
<h3>Kasse:</h3>
<table style="border-left-style:none; border-right-style:none;">
2012-10-10 06:19:55 +00:00
<tr> <td> diese Woche: </td> <td> ${5 * lame}&nbsp;&euro; </td> </tr>
<tr> <td> insgesamt: </td> <td> ${pool}&nbsp;&euro;</td> </tr>
<tr> <td> beglichen: </td> <td> ${paid}&nbsp;&euro;</td> </tr>
2012-09-29 20:50:30 +00:00
<tr> <td> verfeiert: </td> <td> ${event}&nbsp;&euro;</td> </tr>
</table>
2012-09-29 20:50:30 +00:00
<h3>Schulden:</h3>
2010-05-24 01:08:25 +00:00
<% 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):
2010-05-24 01:08:25 +00:00
% if i % 3 == 0:
<tr>\
% endif
<% i += 1 %>\
2012-10-10 06:19:55 +00:00
<td class="user">${u}</td> <td class="money">${v}&nbsp;&euro;</td>\
2010-05-24 01:08:25 +00:00
% if i % 3 == 0:
</tr>
%endif
% endfor
2010-05-24 01:08:25 +00:00
% if i % 3 != 0:
</tr>
%endif
2009-12-30 05:04:30 +00:00
</table>
2012-07-09 20:23:02 +00:00
% if punted:
2012-10-10 06:19:55 +00:00
<h3>Zuvor ausgeschieden (m&uuml;ssen 30&nbsp;&euro; f&uuml;r den Wiedereinstieg bezahlen):</h3>
2012-07-09 20:23:02 +00:00
<ul>
2012-09-29 20:50:30 +00:00
% for (u) in sorted(punted, key=lambda p:p.name[p.name.rfind(' '):].lower()):
<li>${u.name} (seit ${u.end_de})</li>
2012-07-09 20:23:02 +00:00
% endfor
2012-09-29 18:55:49 +00:00
</ul>
% endif