proxitok/components/themes/common/controls.latte

9 lines
479 B
Plaintext
Raw Normal View History

2022-05-24 08:10:41 -04:00
<div n:ifset="$data->info" class="buttons">
{* is_numeric is used to avoid having a back button with ttwid cursors *}
{if isset($_GET['cursor']) && is_numeric($_GET['cursor']) && $_GET['cursor'] != 0 }
<a class="button is-danger" href="?cursor=0">First</a>
2022-05-24 08:10:41 -04:00
<a class="button is-danger" href="?cursor={$data->feed->minCursor}">Back</a>
{/if}
2022-05-24 08:10:41 -04:00
<a n:attr="disabled => !$data->feed->hasMore" class="button is-success" href="?cursor={$data->feed->maxCursor}">Next</a>
</div>