f0ckv2/views/partials/pagination.html
2021-04-17 10:43:23 +02:00

15 lines
851 B
HTML

{{if typeof pagination !== "undefined"}}
<nav class="pagination">
<a href="{{=pagination.link}}{{=pagination.start}}" class="page-item-1 btn start{{if !pagination.prev}} disabled{{/if}}">&laquo;</a>
<a href="{{=pagination.link}}{{=pagination.prev}}" class="page-item-2 btn prev{{if !pagination.prev}} disabled{{/if}}">&lsaquo;</a>
{{each pagination.cheat as i}}
{{if i == pagination.page}}
<span class="btn disabled">{{=i}}</span>
{{else}}
<a href="{{=pagination.link}}{{=i}}" class="pagination-int-item btn">{{=i}}</a>
{{/if}}
{{/each}}
<a href="{{=pagination.link}}{{=pagination.next}}" class="page-item-3 btn next{{if !pagination.next}} disabled{{/if}}">&rsaquo;</a>
<a href="{{=pagination.link}}{{=pagination.end}}" class="page-item-4 btn start{{if !pagination.next}} disabled{{/if}}">&raquo;</a>
</nav>
{{/if}}