From 9444d1592d9b91d0a7fc33e7e16b29ba9558b70f Mon Sep 17 00:00:00 2001 From: Nick McCullum Date: Fri, 1 Apr 2022 16:20:15 -0300 Subject: [PATCH] removed deprecated and template syntax --- .../templates/helpdesk/filters/owner.html | 2 +- .../templates/helpdesk/filters/sorting.html | 12 +++++------ .../helpdesk/public_view_ticket.html | 20 +++++++++---------- .../templates/helpdesk/report_output.html | 2 +- helpdesk/templates/helpdesk/ticket.html | 20 +++++++++---------- 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/helpdesk/templates/helpdesk/filters/owner.html b/helpdesk/templates/helpdesk/filters/owner.html index 20ed9446..0e7b64cc 100644 --- a/helpdesk/templates/helpdesk/filters/owner.html +++ b/helpdesk/templates/helpdesk/filters/owner.html @@ -14,7 +14,7 @@ {% endwith %} {% for u in user_choices %} {% endfor %} diff --git a/helpdesk/templates/helpdesk/filters/sorting.html b/helpdesk/templates/helpdesk/filters/sorting.html index b9295fad..9115b1ce 100644 --- a/helpdesk/templates/helpdesk/filters/sorting.html +++ b/helpdesk/templates/helpdesk/filters/sorting.html @@ -6,22 +6,22 @@
diff --git a/helpdesk/templates/helpdesk/public_view_ticket.html b/helpdesk/templates/helpdesk/public_view_ticket.html index 2d28c2f9..c293427d 100644 --- a/helpdesk/templates/helpdesk/public_view_ticket.html +++ b/helpdesk/templates/helpdesk/public_view_ticket.html @@ -99,34 +99,34 @@
{% trans "You can insert ticket and queue details in your message. For more information, see the context help page." %}
{% if not ticket.can_be_resolved %}
{% trans "This ticket cannot be resolved or closed until the tickets it depends on are resolved." %}
{% endif %} - {% ifequal ticket.status 1 %} + {% if ticket.status == 1 %} - {% endifequal %} - {% ifequal ticket.status 2 %} + {% endif %} + {% if ticket.status == 2 %}
- {% endifequal %} - {% ifequal ticket.status 3 %} + {% endif %} + {% if ticket.status == 3 %}
- {% endifequal %} - {% ifequal ticket.status 4 %} + {% endif %} + {% if ticket.status == 4 %}
- {% endifequal %} - {% ifequal ticket.status 5 %} + {% endif %} + {% if ticket.status == 5 %}
- {% endifequal %} + {% endif %} diff --git a/helpdesk/templates/helpdesk/report_output.html b/helpdesk/templates/helpdesk/report_output.html index 69497b03..cd50fe0b 100644 --- a/helpdesk/templates/helpdesk/report_output.html +++ b/helpdesk/templates/helpdesk/report_output.html @@ -29,7 +29,7 @@ diff --git a/helpdesk/templates/helpdesk/ticket.html b/helpdesk/templates/helpdesk/ticket.html index 5eade600..54324f3b 100644 --- a/helpdesk/templates/helpdesk/ticket.html +++ b/helpdesk/templates/helpdesk/ticket.html @@ -112,39 +112,39 @@
{% if not ticket.can_be_resolved %}
{% trans "This ticket cannot be resolved or closed until the tickets it depends on are resolved." %}
{% endif %} - {% ifequal ticket.status 1 %} + {% if ticket.status == 1 %}
- {% endifequal %} - {% ifequal ticket.status 2 %} + {% endif %} + {% if ticket.status == 2 %}
- {% endifequal %} - {% ifequal ticket.status 3 %} + {% endif %} + {% if ticket.status == 3 %}
- {% endifequal %} - {% ifequal ticket.status 4 %} + {% endif %} + {% if ticket.status == 4 %}
- {% endifequal %} - {% ifequal ticket.status 5 %} + {% endif %} + {% if ticket.status == 5 %}
- {% endifequal %} + {% endif %} {% if helpdesk_settings.HELPDESK_UPDATE_PUBLIC_DEFAULT %}