From 31d82fb1afbb958c2031680861e4905a137c489a Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Mon, 6 Dec 2021 22:54:46 -0800 Subject: [PATCH] fix(templates): correct Closed link display Signed-off-by: Kevin Morris --- templates/requests.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/requests.html b/templates/requests.html index 74ea6416..e8c1a8c8 100644 --- a/templates/requests.html +++ b/templates/requests.html @@ -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 %}
{% endif %} - - {{ "Close" | tr }} - + {% if not result.ClosedTS %} + + {{ "Close" | tr }} + + {% endif %} {% else %} {{ result.status_display() }} {% endif %}