mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Pagination: Add intcomma to number of results
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load humanize %}
|
||||||
{% load urlreplace %}
|
{% load urlreplace %}
|
||||||
|
{% if is_paginated or page_obj.paginator.count > 1 %}
|
||||||
<nav class="text-center pagination-container">
|
<nav class="text-center pagination-container">
|
||||||
<ul class="pagination">
|
<ul class="pagination">
|
||||||
{% if is_paginated %}
|
{% if is_paginated %}
|
||||||
@@ -11,7 +13,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li class="page-current"><a>
|
<li class="page-current"><a>
|
||||||
{% blocktrans trimmed with page=page_obj.number of=page_obj.paginator.num_pages count=page_obj.paginator.count %}
|
{% blocktrans trimmed with page=page_obj.number of=page_obj.paginator.num_pages count=page_obj.paginator.count|intcomma %}
|
||||||
Page {{ page }} of {{ of }} ({{ count }} elements)
|
Page {{ page }} of {{ of }} ({{ count }} elements)
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</a></li>
|
</a></li>
|
||||||
@@ -25,7 +27,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
{% if page_obj.paginator.count > 1 %}
|
{% if page_obj.paginator.count > 1 %}
|
||||||
<li class="page-current"><a>
|
<li class="page-current"><a>
|
||||||
{% blocktrans trimmed with count=page_obj.paginator.count %}
|
{% blocktrans trimmed with count=page_obj.paginator.count|intcomma %}
|
||||||
{{ count }} elements
|
{{ count }} elements
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</a></li>
|
</a></li>
|
||||||
@@ -46,3 +48,4 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
|
{% endif %}
|
||||||
Reference in New Issue
Block a user