]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/members/points.tt2
Top members converted
[ndwebbie.git] / root / src / members / points.tt2
diff --git a/root/src/members/points.tt2 b/root/src/members/points.tt2
new file mode 100644 (file)
index 0000000..01c9ff5
--- /dev/null
@@ -0,0 +1,23 @@
+[% META title = 'Top members' %]
+<table>
+       <tr>
+       <th>User</th>
+       <th><a href="[% c.uri_for('points','total_points') %]">Total</a></th>
+       <th><a href="[% c.uri_for('points','defense_points') %]">Defenses</a></th>
+       <th><a href="[% c.uri_for('points','attack_points') %]">Attacks</a></th>
+       <th><a href="[% c.uri_for('points','raid_points') %]">Raid</a></th>
+       <th><a href="[% c.uri_for('points','scan_points') %]">Scans</a></th>
+       <th><a href="[% c.uri_for('points','humor_points') %]">Humor</a></th>
+       </tr>
+[% FOR m IN members %]
+       <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
+       <td>[% m.username %]</td>
+       <td>[% m.total_points %]</td>
+       <td>[% m.defense_points %]</td>
+       <td>[% m.attack_points %]</td>
+       <td>[% m.raid_points %]</td>
+       <td>[% m.scan_points %]</td>
+       <td>[% m.humor_points %]</td>
+       </tr>
+[% END %]
+</table>