f0ckv2/views/partials/pagination.html

15 lines
851 B
HTML
Raw Normal View History

2021-03-03 04:34:57 +00:00
{{if typeof pagination !== "undefined"}}
<nav class="pagination">
2021-04-17 08:43:23 +00:00
<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>
2021-03-03 04:34:57 +00:00
{{each pagination.cheat as i}}
{{if i == pagination.page}}
2021-03-03 06:56:46 +00:00
<span class="btn disabled">{{=i}}</span>
2021-03-03 04:34:57 +00:00
{{else}}
2021-04-17 08:43:23 +00:00
<a href="{{=pagination.link}}{{=i}}" class="pagination-int-item btn">{{=i}}</a>
2021-03-03 04:34:57 +00:00
{{/if}}
{{/each}}
2021-04-17 08:43:23 +00:00
<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>
2021-03-03 04:34:57 +00:00
</nav>
{{/if}}