projects
/
iron-blogger
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29891d5
)
Improve styling on week.tmpl
author
Nelson Elhage
<nelhage@ksplice.com>
Mon, 24 May 2010 01:08:25 +0000
(21:08 -0400)
committer
Nelson Elhage
<nelhage@ksplice.com>
Mon, 24 May 2010 01:08:25 +0000
(21:08 -0400)
templates/week.tmpl
patch
|
blob
|
history
diff --git
a/templates/week.tmpl
b/templates/week.tmpl
index 4ed842fcbb886233507de7c17bf315dc07e84ea0..57a88c01c066449302777f67fde74966f5710534 100644
(file)
--- a/
templates/week.tmpl
+++ b/
templates/week.tmpl
@@
-1,21
+1,22
@@
Results for week beginning ${week_start.strftime("%F")}
<h2>People who posted</h2>
Results for week beginning ${week_start.strftime("%F")}
<h2>People who posted</h2>
-<
u
l>
+<
d
l>
% for u in sorted(good, key=lambda u:u.username):
% for u in sorted(good, key=lambda u:u.username):
-<li><b>${u.username}:</b>
+<dt><span class="user">${u.username}:</span></dt>
+<dd>
<ul>
% for p in u.weeks[week]:
<li><a href="${p['url']}">${p['title'] or "[untitled post]"}</a></li>
% endfor
</ul>
<ul>
% for p in u.weeks[week]:
<li><a href="${p['url']}">${p['title'] or "[untitled post]"}</a></li>
% endfor
</ul>
-</
li
>
+</
dd
>
% endfor
% endfor
-</
u
l>
+</
d
l>
<h2>People who failed to post</h2>
<ul>
% for u in sorted(lame, key=lambda u:u.username):
<h2>People who failed to post</h2>
<ul>
% for u in sorted(lame, key=lambda u:u.username):
-<li
><b>${u.username}</b>
</li>
+<li
class="user">${u.username}
</li>
% endfor
</ul>
% endfor
</ul>
@@
-23,7
+24,7
@@
Results for week beginning ${week_start.strftime("%F")}
<h2>People who have not yet started</h2>
<ul>
% for u in sorted(skip, key=lambda u:u.username):
<h2>People who have not yet started</h2>
<ul>
% for u in sorted(skip, key=lambda u:u.username):
- <li
><b>${u.username}</b>
</li>
+ <li
class="user">${u.username}
</li>
% endfor
</ul>
% endif
% endfor
</ul>
% endif
@@
-36,8
+37,19
@@
Results for week beginning ${week_start.strftime("%F")}
</table>
<h2>Debts:</h2>
</table>
<h2>Debts:</h2>
-<table>
+<% i = 0 %>
+<table class="debts">
% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
% for (u, v) in sorted(debts, key=lambda p:p[1], reverse=True):
-<tr><td>${u}</td> <td>${v}</td></tr>
+% 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
% endfor
+% if i % 3 != 0:
+</tr>
+%endif
</table>
</table>
Benjamin Mako Hill
||
Want to submit a patch?