aboutsummaryrefslogtreecommitdiff
path: root/lava_scheduler_app/templates/lava_scheduler_app
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2018-07-18 07:14:44 +0100
committerRemi Duraffort <remi.duraffort@linaro.org>2018-07-18 13:45:07 +0000
commit5572ad267daf8a37739a55018e87dea2f5cea984 (patch)
tree4b364e2fa3823027cb530da966957b3a58dba452 /lava_scheduler_app/templates/lava_scheduler_app
parent5903343d4086cff36048ffaa885b010d9d1f9887 (diff)
Exclude Retired devices from warning messages
Change-Id: I948b6dbab13af0eeea3bea4e01a03a9cffb1bb22
Diffstat (limited to 'lava_scheduler_app/templates/lava_scheduler_app')
-rw-r--r--lava_scheduler_app/templates/lava_scheduler_app/_device_base.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/lava_scheduler_app/templates/lava_scheduler_app/_device_base.html b/lava_scheduler_app/templates/lava_scheduler_app/_device_base.html
index 582702d27..03cdd599e 100644
--- a/lava_scheduler_app/templates/lava_scheduler_app/_device_base.html
+++ b/lava_scheduler_app/templates/lava_scheduler_app/_device_base.html
@@ -3,7 +3,7 @@
{% block content %}
-{% if template_mismatch %}
+{% if template_mismatch and device.health != device.HEALTH_RETIRED %}
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<strong>Configuration Error: missing or invalid template.</strong>
@@ -12,7 +12,7 @@
</div>
{% endif %}
-{% if not device.worker_host %}
+{% if not device.worker_host and device.health != device.HEALTH_RETIRED %}
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<strong>No worker is associated with this device</strong>: no jobs can be scheduled, started or canceled.
@@ -26,7 +26,7 @@
</div>
{% endif %}
-{% if user.is_staff and not device.get_health_check and not device.device_type.disable_health_check %}
+{% if user.is_staff and not device.get_health_check and not device.device_type.disable_health_check and device.health != device.HEALTH_RETIRED %}
<div class="alert alert-warning alert-dismissable">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>The device has no