fix(templates): correct Closed link display

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-12-06 22:54:46 -08:00
parent 2df54bd7a0
commit 31d82fb1af
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -76,7 +76,7 @@
) %} ) %}
{% endif %} {% endif %}
{% if request.user.is_elevated() %} {% if request.user.is_elevated() and not result.ClosedTS %}
{% if result.RequestType.ID == 2 and not due %} {% if result.RequestType.ID == 2 and not due %}
{% set time_left = idle_time - time_delta %} {% set time_left = idle_time - time_delta %}
{% if time_left > 48 * 3600 %} {% if time_left > 48 * 3600 %}
@ -98,9 +98,11 @@
{% endif %} {% endif %}
<br /> <br />
{% endif %} {% endif %}
<a href="/requests/{{ result.ID }}/close"> {% if not result.ClosedTS %}
{{ "Close" | tr }} <a href="/requests/{{ result.ID }}/close">
</a> {{ "Close" | tr }}
</a>
{% endif %}
{% else %} {% else %}
{{ result.status_display() }} {{ result.status_display() }}
{% endif %} {% endif %}