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: People who posted:
% for u in sorted(userlist, key=lambda u:u.name[u.name.rfind(' '):].lower()): % for u in sorted(userlist, key=lambda u:u.name[u.name.rfind(' '):].lower()):
% for b in u.goodblogs: % for b in u.goodblogs:
<% pc=0 %>
${u.name} in ${b} (${u.username}): ${u.name} in ${b} (${u.username}):
% for p in u.posts[b][week]: % for p in u.posts[b][week]:
- ${p['url']} % if pc < 10:
<% pc+=1 %> - ${p['url']}
% endif
% endfor % endfor
% if len(u.posts[b][week]) > 10:
(and ${len(u.posts[b][week])-10} more)
% endif
% endfor % endfor
% endfor % endfor

View File

@ -14,10 +14,15 @@ Zusammenfassung der Woche ab ${week_start.strftime("%d.%m.%Y")}
% endif % endif
:</span></dt> :</span></dt>
<dd> <dd>
<ul> <% pc=0 %><ul>
% for p in u.posts[g][week]: % 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 % endfor
% if len(u.posts[g][week]) > 10:
<li>und ${len(u.posts[g][week])-10} weitere Artikel</li>
% endif
</ul> </ul>
</dd> </dd>
% endif % endif