Skip to content
Snippets Groups Projects
Commit e528e0b2 authored by Daniel Levy's avatar Daniel Levy
Browse files

Merge branch 'table-showing-bug' into 'staging'

Fix table numbering logic

See merge request !144
parents 4ee7b642 a961ae7e
No related branches found
No related tags found
2 merge requests!166Staging,!144Fix table numbering logic
Pipeline #9410 passed
......@@ -11,7 +11,11 @@
{% else %}
{% trans "results" as results %}
{% endif %}
<div class="box pagination-label"><span>{% blocktrans %}Showing {{ start_index }} - {{ end_index }} of {{ total }} {{ results }}{% endblocktrans %}</span></div>
{% if total < end_index %}
<div class="box pagination-label"><span>{% blocktrans %}Showing {{ total }} {{ results }}{% endblocktrans %}</span></div>
{% else %}
<div class="box pagination-label"><span>{% blocktrans %}Showing {{ start_index }} - {{ end_index }} of {{ total }} {{ results }}{% endblocktrans %}</span></div>
{% endif %}
{% endwith %}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment