mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(templates): correct Closed link display
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
2df54bd7a0
commit
31d82fb1af
1 changed files with 6 additions and 4 deletions
|
@ -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 %}
|
||||
{% if not result.ClosedTS %}
|
||||
<a href="/requests/{{ result.ID }}/close">
|
||||
{{ "Close" | tr }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{{ result.status_display() }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue