This commit is contained in:
Thomas Renger 2014-04-13 00:18:50 +02:00
parent 68e60a2488
commit f298a168d4
2 changed files with 14 additions and 3 deletions

View File

@ -19,10 +19,16 @@ PUNTED for balance ≥$30: ${", ".join(sorted(punt))}
People who posted:
% for u in sorted(userlist, key=lambda u:u.name[u.name.rfind(' '):].lower()):
% for b in u.goodblogs:
<% pc=0 %>
${u.name} in ${b} (${u.username}):
% for p in u.posts[b][week]:
- ${p['url']}
% if pc < 10:
<% pc+=1 %> - ${p['url']}
% endif
% endfor
% if len(u.posts[b][week]) > 10:
(and ${len(u.posts[b][week])-10} more)
% endif
% endfor
% endfor

View File

@ -14,10 +14,15 @@ Zusammenfassung der Woche ab ${week_start.strftime("%d.%m.%Y")}
% endif
:</span></dt>
<dd>
<ul>
<% pc=0 %><ul>
% for p in u.posts[g][week]:
<li><a href="${p['url']}">${p['title'] or "[ohne Titel]"}</a></li>
% if pc < 10:
<% pc+=1 %><li><a href="${p['url']}">${p['title'] or "[ohne Titel]"}</a></li>
%endif
% endfor
% if len(u.posts[g][week]) > 10:
<li>und ${len(u.posts[g][week])-10} weitere Artikel</li>
% endif
</ul>
</dd>
% endif