From 1d9f734e88f08c6f42f1f1a1001c72beb1c80550 Mon Sep 17 00:00:00 2001 From: Vermaas <vermaas@astron.nl> Date: Wed, 6 Mar 2024 16:46:35 +0100 Subject: [PATCH] add graph button to monitoring screen --- .../templates/taskdatabase/monitoring_page.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/atdb/taskdatabase/templates/taskdatabase/monitoring_page.html b/atdb/taskdatabase/templates/taskdatabase/monitoring_page.html index 38a658d9..812cd097 100644 --- a/atdb/taskdatabase/templates/taskdatabase/monitoring_page.html +++ b/atdb/taskdatabase/templates/taskdatabase/monitoring_page.html @@ -16,11 +16,14 @@ <div class="thumbnail"> <h5>Health and Status of the LDV services.</h5> - {% if user.is_superuser %} + <p> - <a href="{% url 'clear-inactive-services' %}" class="btn btn-secondary btn-sm" role="button"><i class="fas fa-window-close"></i> Clear Services</a> + {% if user.is_superuser %} + <a href="{% url 'clear-inactive-services' %}" class="btn btn-secondary btn-sm" role="button"><i class="fas fa-window-close"></i> Clear Services</a> + {% endif %} + <a href="{% url 'create_status_graph' %}" class="btn btn-primary btn-sm" role="button"><i class="fas fa-chart-line"></i> Status Graph</a> </p> - {% endif %} + <table class="table table-striped"> <th>LDV-Service</th><th>Host</th><th>Enabled</th><th>Last Status</th><th>Timestamp</th><th>Process id</th><th>Description</th> <tbody> -- GitLab