]> projects.mako.cc - iron-blogger/blobdiff - templates/users.tmpl
payment/unpunt from johns
[iron-blogger] / templates / users.tmpl
index 0c58f20f3359c909a13471552a73985e9874d14b..e111138bad28fb0c787b73ea4d4cc16dabf3d559 100644 (file)
@@ -1,10 +1,40 @@
+<h1>Participants in Good Standing</h1>
+<table id='participants'>
+        <tr>
+          <th>Who</th>
+          <th>Blog link</th>
+          <th>Start Week</th>
+        </tr>
+% for u in sorted(userlist, key=lambda u:u.username):
+    <% if u.end: continue %>
+        <tr>
+          <td><tt> ${u.username} </tt></td>
+          <td>
+           % if u.links:
+            % for a in u.links:
+           <a href="${a[1]}">${a[0]}</a>
+            % endfor
+           % else:
+             Undecided
+           % endif
+          </td>
+          <td> ${u.start} </td>
+        </tr>
+% endfor
+      </table>
+
+% if any(map(lambda u: u.end, userlist)):
+<h1>Former Participants Punted for Lack of Payment</h1>
+
       <table id='participants'>
         <tr>
           <th>Who</th>
           <th>Blog link</th>
           <th>Start Week</th>
+          <th>End Week</th>
         </tr>
-% for u in userlist:
+% for u in sorted(userlist, key=lambda u:u.username):
+    <% if not u.end: continue %>
         <tr>
           <td><tt> ${u.username} </tt></td>
           <td>
@@ -17,6 +47,9 @@
            % endif
           </td>
           <td> ${u.start} </td>
+          <td> ${u.end} </td>
         </tr>
 % endfor
       </table>
+
+% endif

Benjamin Mako Hill || Want to submit a patch?