forked from mozilla/zamboni
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% if pager.paginator.num_pages > 1 %} | ||
<nav class="paginator c pjax-trigger"> | ||
<p class="num"> | ||
{# L10n: This is a page range (e.g., Page 1 of 50). #} | ||
{% trans current_pg=pager.number, | ||
last_pg=pager.paginator.num_pages, | ||
current_pg_url=pager.url|urlparams(page=pager.number), | ||
last_pg_url=pager.url|urlparams(page=pager.paginator.num_pages) %} | ||
Page <a href="{{ current_pg_url }}">{{ current_pg }}</a> of | ||
<a href="{{ last_pg_url }}">{{ last_pg }}</a> | ||
{% endtrans %} | ||
</p> | ||
<p class="rel"> | ||
<a href="{{ pager.url|urlparams(page=pager.previous_page_number()) | ||
if pager.has_previous() else '#' }}" | ||
class="button prev{% if not pager.has_previous() %} disabled{% endif %}"> | ||
{{ _('Previous') }}</a> | ||
<a href="{{ pager.url|urlparams(page=pager.next_page_number()) | ||
if pager.has_next() else '#' }}" | ||
class="button next{% if not pager.has_next() %} disabled{% endif %}"> | ||
{{ _('Next') }}</a> | ||
</p> | ||
<p class="pos"> | ||
{# L10n: First and second arguments are the result range (e.g., 1-20); | ||
third argument is the number of total results (e.g., 1,000). #} | ||
{% trans begin=pager.start_index(), end=pager.end_index(), | ||
count=pager.paginator.count|numberfmt %} | ||
Showing <b>{{ begin }}</b>–<b>{{ end }}</b> of <b>{{ count }}</b> | ||
{% endtrans %} | ||
</p> | ||
</nav> | ||
{% endif %} |