Skip to content

Commit

Permalink
added missing template ack
Browse files Browse the repository at this point in the history
  • Loading branch information
potch authored and Andy McKay committed Nov 1, 2012
1 parent 346ade0 commit f9f7fc6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions mkt/site/templates/site/paginator.html
@@ -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>&ndash;<b>{{ end }}</b> of <b>{{ count }}</b>
{% endtrans %}
</p>
</nav>
{% endif %}

0 comments on commit f9f7fc6

Please sign in to comment.