f0ckv2/views/partials/pagination.html
2021-03-03 07:56:46 +01:00

15 lines
801 B
HTML

{{if typeof pagination !== "undefined"}}
<nav class="pagination">
<a href="{{=pagination.link}}{{=pagination.start}}" class="btn start{{if !pagination.prev}} disabled{{/if}}">&#11164;&#11164;</a>
<a href="{{=pagination.link}}{{=pagination.prev}}" class="btn prev{{if !pagination.prev}} disabled{{/if}}">&#11164;</a>
{{each pagination.cheat as i}}
{{if i == pagination.page}}
<span class="btn disabled">{{=i}}</span>
{{else}}
<a href="{{=pagination.link}}{{=i}}" class="btn">{{=i}}</a>
{{/if}}
{{/each}}
<a href="{{=pagination.link}}{{=pagination.next}}" class="btn next{{if !pagination.next}} disabled{{/if}}">&#11208;</a>
<a href="{{=pagination.link}}{{=pagination.end}}" class="btn start{{if !pagination.next}} disabled{{/if}}">&#11208;&#11208;</a>
</nav>
{{/if}}