* Pass the page number in the URI query string.

This commit is contained in:
Eelco Dolstra
2009-10-15 12:59:55 +00:00
parent d109910453
commit dd12113eb2
2 changed files with 6 additions and 6 deletions

View File

@ -11,13 +11,13 @@ out of [% totalBuilds %] in order of descending timestamp.</p>
[% INCLUDE renderBuildList %]
[<a href="[% "$baseUri/1" %]">First</a>]
[<a href="[% "$baseUri?page=1" %]">First</a>]
[% IF page > 1 %]
[<a href="[% "$baseUri/"; (page - 1) %]">Prev</a>]
[<a href="[% "$baseUri?page="; (page - 1) %]">Prev</a>]
[% END %]
[% IF page * resultsPerPage < totalBuilds %]
[<a href="[% "$baseUri/"; (page + 1) %]">Next</a>]
[<a href="[% "$baseUri?page="; (page + 1) %]">Next</a>]
[% END %]
[<a href="[% "$baseUri/"; (totalBuilds - 1) div resultsPerPage + 1 %]">Last</a>]
[<a href="[% "$baseUri?page="; (totalBuilds - 1) div resultsPerPage + 1 %]">Last</a>]
[% END %]