From: Michael Andreen Date: Sat, 2 Aug 2008 09:16:47 +0000 (+0200) Subject: No point in showing previous link if we're at the start X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=commitdiff_plain;h=7e478caaf6ae37f0479601ffa4cd957364075211 No point in showing previous link if we're at the start --- diff --git a/root/src/rankings/alliances.tt2 b/root/src/rankings/alliances.tt2 index 8c95a4c..8f78fbb 100644 --- a/root/src/rankings/alliances.tt2 +++ b/root/src/rankings/alliances.tt2 @@ -1,5 +1,5 @@ [% META title = 'Alliance Rankings' %] -

Previous 100 +

[% IF offset > 0 %]Previous 100[% END %] Next 100

@@ -35,6 +35,6 @@ [% END %]
-

Previous 100 +

[% IF offset > 0 %]Previous 100[% END %] Next 100

diff --git a/root/src/rankings/galaxies.tt2 b/root/src/rankings/galaxies.tt2 index 869a3e6..8f0c00c 100644 --- a/root/src/rankings/galaxies.tt2 +++ b/root/src/rankings/galaxies.tt2 @@ -1,5 +1,5 @@ [% META title = 'Galaxy Rankings' %] -

Previous 100 +

[% IF offset > 0 %]Previous 100[% END %] Next 100

@@ -41,6 +41,6 @@ [% END %]
-

Previous 100 +

[% IF offset > 0 %]Previous 100[% END %] Next 100

diff --git a/root/src/rankings/planets.tt2 b/root/src/rankings/planets.tt2 index a631abe..a58ae6f 100644 --- a/root/src/rankings/planets.tt2 +++ b/root/src/rankings/planets.tt2 @@ -1,5 +1,5 @@ [% META title = 'Planet Rankings' %] -

Previous 100 +

[% IF offset > 0 %]Previous 100[% END %] Next 100

@@ -54,6 +54,6 @@ [% END %]
-

Previous 100 +

[% IF offset > 0 %]Previous 100[% END %] Next 100