mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(templates): omit page count in pager partial if pages <= 0
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
e1543f2e91
commit
f273cfc87d
1 changed files with 3 additions and 1 deletions
|
@ -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) }}
|
||||||
|
{% if pages %}
|
||||||
{{ "Page %d of %d." | tr | format(page + 1, 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">
|
||||||
|
|
Loading…
Add table
Reference in a new issue