From 0bdf95e00a5de0600d2d9222c122cbb4fcd99abd Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Sat, 17 Jan 2026 09:06:02 -0500 Subject: [PATCH] feat: Add new pagination template for link lists. --- shaarli-pro/linklist.paging.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shaarli-pro/linklist.paging.html b/shaarli-pro/linklist.paging.html index ceaf4ed..1369be2 100644 --- a/shaarli-pro/linklist.paging.html +++ b/shaarli-pro/linklist.paging.html @@ -1,4 +1,7 @@ {if="$page_max > 1"} +{if="isset($result_count) && $result_count > 0"} +{$total=$result_count} +{else} {if="$is_logged_in"} {$total="$linkcount"} {else} @@ -8,6 +11,7 @@ {$total=$linkcount - $privateLinkcount} {/if} {/if} +{/if} {$from=($page_current - 1) * $links_per_page + 1} {$to=min($total, ($page_current - 1) * $links_per_page + $links_per_page)}