Disable restart button for completed tests (#211)

This commit is contained in:
Arseniy authored and GitHub committed 2024-03-28 19:41:29 -04:00
1 parent a0d76f32ec
commit 36c8030b3f
1 file changed
+2 -2
+2 -2
View File
@@ -81,9 +81,9 @@
{% endif %}
<!-- Restart Button: For Approvers or Workload Authors of finished workloads -->
{% if workload.finished and profile.approver %}
{% if workload.finished and not workload.passed and not workload.failed and profile.approver %}
<a class="anchorbutton btn-yellow" href="/{{type|lower}}/{{workload.id}}/RESTART">Restart</a>
{% elif workload.finished and profile.user.username == workload.author %}
{% elif workload.finished and not workload.passed and not workload.failed and profile.user.username == workload.author %}
<a class="anchorbutton btn-yellow" href="/{{type|lower}}/{{workload.id}}/RESTART">Restart</a>
{% elif workload.finished %}
<a class="anchorbutton btn-disabled">Restart</a>