diff --git a/helpdesk/templates/helpdesk/include/tickets.html b/helpdesk/templates/helpdesk/include/tickets.html index 25d40363..54b5ab0f 100644 --- a/helpdesk/templates/helpdesk/include/tickets.html +++ b/helpdesk/templates/helpdesk/include/tickets.html @@ -50,7 +50,7 @@ {% with ''|center:11 as range %} {% for _ in range %} - {% with ticket_list.number+forloop.counter-5 as i %} + {% with ticket_list.number|add:forloop.counter|sub:"5" as i %} {% if ticket_list.number == i %}
  • {{ i }} (current)
  • {% else if ticket_list.pages%}