From b1914bad1496ed7a0c6796f5e1197ae6120054b4 Mon Sep 17 00:00:00 2001 From: Tom Bernens Date: Mon, 1 Jun 2020 17:08:30 -0700 Subject: [PATCH] template language arithmatic --- helpdesk/templates/helpdesk/include/tickets.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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%}