feat: Add new pagination template for link lists.

This commit is contained in:
Bruno Charest 2026-01-17 09:06:02 -05:00
parent c81eab72e5
commit 0bdf95e00a

View File

@ -1,4 +1,7 @@
{if="$page_max > 1"} {if="$page_max > 1"}
{if="isset($result_count) && $result_count > 0"}
{$total=$result_count}
{else}
{if="$is_logged_in"} {if="$is_logged_in"}
{$total="$linkcount"} {$total="$linkcount"}
{else} {else}
@ -8,6 +11,7 @@
{$total=$linkcount - $privateLinkcount} {$total=$linkcount - $privateLinkcount}
{/if} {/if}
{/if} {/if}
{/if}
{$from=($page_current - 1) * $links_per_page + 1} {$from=($page_current - 1) * $links_per_page + 1}
{$to=min($total, ($page_current - 1) * $links_per_page + $links_per_page)} {$to=min($total, ($page_current - 1) * $links_per_page + $links_per_page)}
<div class="paging"> <div class="paging">