]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/stats/galaxy.tt2
Add links to previous and next galaxy
[ndwebbie.git] / root / src / stats / galaxy.tt2
index 4e27a6bf46d3abbc2c4201f1f7f51894a334f104..6c9e9b883c5c59829851dcad4a555766067f4d64 100644 (file)
@@ -1,6 +1,13 @@
 [% META title = 'Galaxy stats' %]
+[% FOR b IN browse %]
+<a href="[% c.uri_for('galaxy',b.x,b.y) %]">[% b.x %]:[% b.y %]</a>
+[% END %]
+[% IF g %]
 [% PROCESS inc/stats.tt2 %]
 <div class="leftinfo">
 <img class="graph" src="[% c.uri_for('/graphs/galaxystats',g.x,g.y,STICK) %]" alt="stats" height="300" width="500">
 <img class="graph" src="[% c.uri_for('/graphs/galaxyranks',g.x,g.y,STICK) %]" alt="ranks" height="300" width="500">
 </div>
+[% ELSE %]
+<p>No such galaxy</p>
+[% END %]