mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 02:10:49 +01:00
only create the control if the page number is in the paginator range
This commit is contained in:
parent
c854ff764a
commit
a85223e7a5
@ -53,7 +53,7 @@
|
||||
{% with ticket_list.number|add:forloop.counter|add:"-5" as i %}
|
||||
{% if ticket_list.number == i %}
|
||||
<li class="active"><span>{{ i }} <span class="sr-only">(current)</span></span></li>
|
||||
{% else if ticket_list.pages%}
|
||||
{% else if i in ticket_list.paginator.page_range %}
|
||||
<li><a href="?{{ page_var }}={{ i }}">{{ i }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user