Fix paging when link has to be disabled

This commit is contained in:
Sébastien Lucas 2014-05-31 16:22:10 +02:00
parent 1708f58d42
commit c9034bed45

View file

@ -52,9 +52,9 @@
{{?}} {{?}}
{{? it.isPaginated == 1}} {{? it.isPaginated == 1}}
<ul class="pager"> <ul class="pager">
<li><a id="prevLink" href="{{=it.prevLink}}" {{? it.prevLink == ""}}disabled{{?}}><span class="glyphicon glyphicon-chevron-left"></span></a></li> <li class="{{? it.prevLink == ""}}disabled{{?}}"><a id="prevLink" href="{{=it.prevLink}}"><span class="glyphicon glyphicon-chevron-left"></span>{{=it.c.i18n.previousAlt}}</a></li>
<li> {{=it.currentPage}} / {{=it.maxPage}} </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> <li class="{{? it.nextLink == ""}}disabled{{?}}"><a id="nextLink" href="{{=it.nextLink}}">{{=it.c.i18n.nextAlt}}<span class="glyphicon glyphicon-chevron-right"></span></a></li>
</ul> </ul>
{{?}} {{?}}
</div> </div>