Use bootstrap's pager (instead of pagination) class
This commit is contained in:
parent
67ed2da50d
commit
bbc3e25d5a
|
@ -6,7 +6,7 @@
|
|||
|
||||
<p>Showing builds [% (page - 1) * resultsPerPage + 1 %] - [% (page - 1) * resultsPerPage + builds.size %] out of [% total %] in order of descending timestamp.</p>
|
||||
|
||||
[% INCLUDE renderPager %]
|
||||
[% INCLUDE renderBuildList hideProjectName=project hideJobsetName=jobset hideJobName=job %]
|
||||
[% INCLUDE renderPager %]
|
||||
|
||||
[% END %]
|
||||
|
|
|
@ -385,14 +385,12 @@ BLOCK renderInputDiff; %]
|
|||
|
||||
|
||||
BLOCK renderPager %]
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
<li><a href="[% "$baseUri?page=1" %]">First</a></li>
|
||||
<li [% IF page == 1 %]class="disabled"[% END %]><a href="[% "$baseUri?page="; (page - 1) %]">Previous</a></li>
|
||||
<li [% IF page * resultsPerPage >= total %]class="disabled"[% END %]><a href="[% "$baseUri?page="; (page + 1) %]">Next</a></li>
|
||||
<li><a href="[% "$baseUri?page="; (total - 1) div resultsPerPage + 1 %]">Last</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="pager">
|
||||
<li [% IF page == 1 %]class="disabled"[% END %]><a href="[% "$baseUri?page=1" %]">« First</a></li>
|
||||
<li [% IF page == 1 %]class="disabled"[% END %]><a href="[% "$baseUri?page="; (page - 1) %]">‹ Previous</a></li>
|
||||
<li [% IF page * resultsPerPage >= total %]class="disabled"[% END %]><a href="[% "$baseUri?page="; (page + 1) %]">Next ›</a></li>
|
||||
<li [% IF page * resultsPerPage >= total %]class="disabled"[% END %]><a href="[% "$baseUri?page="; (total - 1) div resultsPerPage + 1 %]">Last »</a></li>
|
||||
</ul>
|
||||
[% END;
|
||||
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<p>Showing evaluations [% (page - 1) * resultsPerPage + 1 %] - [%
|
||||
(page - 1) * resultsPerPage + evals.size %] out of [% total %].</p>
|
||||
|
||||
[% INCLUDE renderPager %]
|
||||
|
||||
[% INCLUDE renderEvals %]
|
||||
|
||||
[% INCLUDE renderPager %]
|
||||
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue