diff --git a/helpdesk/templates/helpdesk/debug.html b/helpdesk/templates/helpdesk/debug.html index e182dcc2..85c19e8c 100644 --- a/helpdesk/templates/helpdesk/debug.html +++ b/helpdesk/templates/helpdesk/debug.html @@ -3,9 +3,9 @@

Queries

{{ sql_queries|length }} Quer{{ sql_queries|pluralize:"y,ies" }} - {% ifnotequal sql_queries|length 0 %} + {% if sql_queries|length != 0 %} (Show) - {% endifnotequal %} + {% endif %}

diff --git a/helpdesk/templates/helpdesk/navigation-header.html b/helpdesk/templates/helpdesk/navigation-header.html index bee20ccf..769f10da 100644 --- a/helpdesk/templates/helpdesk/navigation-header.html +++ b/helpdesk/templates/helpdesk/navigation-header.html @@ -34,7 +34,7 @@ {% for q in user_saved_queries_ %} {{ q.title }} {% if q.shared %} - (Shared{% ifnotequal user q.user %} by {{ q.user.get_username }}{% endifnotequal %}) + (Shared{% if user != q.user %} by {{ q.user.get_username }}{% endif %}) {% endif %} {% endfor %} diff --git a/helpdesk/templates/helpdesk/navigation-sidebar.html b/helpdesk/templates/helpdesk/navigation-sidebar.html index 6d2c7af1..07c062f5 100644 --- a/helpdesk/templates/helpdesk/navigation-sidebar.html +++ b/helpdesk/templates/helpdesk/navigation-sidebar.html @@ -25,7 +25,7 @@ {% for q in user_saved_queries_ %} {{ q.title }} {% if q.shared %} - (Shared{% ifnotequal user q.user %} by {{ q.user.get_username }}{% endifnotequal %}) + (Shared{% if user != q.user %} by {{ q.user.get_username }}{% endif %}) {% endif %} {% endfor %}