]> projects.mako.cc - iron-blogger/commitdiff
modify participants page to list the punted separately
authorBenjamin Mako Hill <mako@atdot.cc>
Wed, 8 Aug 2012 17:20:06 +0000 (13:20 -0400)
committerBenjamin Mako Hill <mako@atdot.cc>
Wed, 8 Aug 2012 17:20:06 +0000 (13:20 -0400)
templates/users.tmpl

index 9971306f8aa2467ef20b8f77f6b5554c788425db..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 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?