change(templates): omit page count in pager partial if pages <= 0

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-15 17:46:15 -08:00
parent e1543f2e91
commit f273cfc87d
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -16,7 +16,9 @@ Inputs required:
<div class="pkglist-stats"> <div class="pkglist-stats">
<p> <p>
{{ total | tn(singular, plural) | format(total) }} {{ 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 %}
</p> </p>
{% if pages > 1 %} {% if pages > 1 %}
<p class="pkglist-nav"> <p class="pkglist-nav">