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