Handle paging. re #79

This commit is contained in:
Sébastien Lucas 2014-05-31 16:13:50 +02:00
parent 31e10c8835
commit 1708f58d42

View file

@ -50,4 +50,11 @@
{{~}} {{~}}
</div> </div>
{{?}} {{?}}
{{? it.isPaginated == 1}}
<ul class="pager">
<li><a id="prevLink" href="{{=it.prevLink}}" {{? it.prevLink == ""}}disabled{{?}}><span class="glyphicon glyphicon-chevron-left"></span></a></li>
<li> {{=it.currentPage}} / {{=it.maxPage}} </li>
<li><a id="nextLink" href="{{=it.nextLink}}" {{? it.nextLink == ""}}disabled{{?}}><span class="glyphicon glyphicon-chevron-right"></span></a></li>
</ul>
{{?}}
</div> </div>