proxitok/templates/components/themes/common/controls.latte

8 lines
365 B
Plaintext
Raw Permalink Normal View History

2023-01-26 13:21:14 -05:00
<div class="buttons">
{* is_numeric is used to avoid having a back button with ttwid cursors *}
2022-06-12 06:50:41 -04:00
{if isset($_GET['cursor']) && is_numeric($_GET['cursor']) && $_GET['cursor'] != 0}
<a class="button is-danger" href="?cursor=0">First</a>
{/if}
2022-12-27 10:58:03 -05:00
<a n:attr="disabled => !$feed->hasMore" class="button is-success" href="?cursor={$feed->maxCursor}">Next</a>
</div>