From f273cfc87dcd35c0b8457d62bb20db62b783a1b2 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Wed, 15 Dec 2021 17:46:15 -0800 Subject: [PATCH] change(templates): omit page count in pager partial if pages <= 0 Signed-off-by: Kevin Morris --- templates/partials/widgets/pager.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/partials/widgets/pager.html b/templates/partials/widgets/pager.html index 4809accf..1adc354b 100644 --- a/templates/partials/widgets/pager.html +++ b/templates/partials/widgets/pager.html @@ -16,7 +16,9 @@ Inputs required:

{{ total | tn(singular, plural) | format(total) }} - {{ "Page %d of %d." | tr | format(page + 1, pages) }} + {% if pages %} + {{ "Page %d of %d." | tr | format(page + 1, pages) }} + {% endif %}

{% if pages > 1 %}