summaryrefslogtreecommitdiff
path: root/sublab_project/sublab_monitor/templates
diff options
context:
space:
mode:
Diffstat (limited to 'sublab_project/sublab_monitor/templates')
-rw-r--r--sublab_project/sublab_monitor/templates/sublab_monitor/host_status.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/sublab_project/sublab_monitor/templates/sublab_monitor/host_status.html b/sublab_project/sublab_monitor/templates/sublab_monitor/host_status.html
new file mode 100644
index 0000000..5d26dd9
--- /dev/null
+++ b/sublab_project/sublab_monitor/templates/sublab_monitor/host_status.html
@@ -0,0 +1,6 @@
+<td class="status"> {{ hostname|capfirst }}: </td>
+<td class="status">
+ <span class="{{ status|yesno:"green,grey" }}">Online</span>
+ &nbsp;
+ <span class="{{ status|yesno:"grey,red,grey" }}">Offline</span>
+</td>