]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/rankings/galaxies.tt2
No point in showing previous link if we're at the start
[ndwebbie.git] / root / src / rankings / galaxies.tt2
index 869a3e6c2ff2962b8be0557e3165e3f6d1dbd713..8f0c00c3b596081637c01f77583cff601b1761bf 100644 (file)
@@ -1,5 +1,5 @@
 [% META title = 'Galaxy Rankings' %]
-<p><a href="[% c.uri_for('galaxies', order, offset - 100) %]">Previous 100</a>
+<p>[% IF offset > 0 %]<a href="[% c.uri_for('galaxies', order, offset - 100) %]">Previous 100</a>[% END %]
        <a href="[% c.uri_for('galaxies', order, offset + 100) %]">Next 100</a>
 </p>
 <table class="stats">
@@ -41,6 +41,6 @@
        </tr>
 [% END %]
 </table>
-<p><a href="[% c.uri_for('galaxies', order, offset - 100) %]">Previous 100</a>
+<p>[% IF offset > 0 %]<a href="[% c.uri_for('galaxies', order, offset - 100) %]">Previous 100</a>[% END %]
        <a href="[% c.uri_for('galaxies', order, offset + 100) %]">Next 100</a>
 </p>