From efb622642159ab3e4c84d41458dc4761da7212cc Mon Sep 17 00:00:00 2001 From: jmanczak Date: Sun, 26 Apr 2026 23:43:47 +0200 Subject: [PATCH] fix 'Page 1 of 0' on empty quote lists --- src/web/pages/quotes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/pages/quotes.rs b/src/web/pages/quotes.rs index b4a2323..861d661 100644 --- a/src/web/pages/quotes.rs +++ b/src/web/pages/quotes.rs @@ -95,7 +95,7 @@ pub async fn page( } span { - "Page " (page) " of " (total_pages) + "Page " (page) " of " (total_pages.max(1)) } @if page < total_pages {