]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/stats/tags.tt2
Support for planet tags
[ndwebbie.git] / root / src / stats / tags.tt2
diff --git a/root/src/stats/tags.tt2 b/root/src/stats/tags.tt2
new file mode 100644 (file)
index 0000000..ff96fc2
--- /dev/null
@@ -0,0 +1,15 @@
+[% META title = 'Planet tags' %]
+<p> Picked tags: [% tags.join(', ') %]
+[% cloud %]
+
+<table class="stats">
+       <tr>
+               <th>Coords</th><th>Tags</th>
+       </tr>
+[% FOR p IN planets %]
+       <tr class="[% loop.count % 2 == 0 ? 'even' : 'odd' %]">
+       <td><a href="[% c.uri_for('planet',p.pid) %]">[% p.coords %]</a></td>
+       <td>[% p.tags %]</td>
+       </tr>
+[% END %]
+</table>