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