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