Disable restart button for completed tests (#211)
This commit is contained in:
1 parent
a0d76f32ec
commit
36c8030b3f
1 file changed
+2
-2
@@ -81,9 +81,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- Restart Button: For Approvers or Workload Authors of finished workloads -->
|
<!-- 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>
|
<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>
|
<a class="anchorbutton btn-yellow" href="/{{type|lower}}/{{workload.id}}/RESTART">Restart</a>
|
||||||
{% elif workload.finished %}
|
{% elif workload.finished %}
|
||||||
<a class="anchorbutton btn-disabled">Restart</a>
|
<a class="anchorbutton btn-disabled">Restart</a>
|
||||||
|
|||||||
Reference in new issue
Block a user