From cd7adafe7d31f442473a9ae60c8408b0bd853e62 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 4 Dec 2023 16:35:09 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E2=80=94=20Add=20autorefresh=20fea?= =?UTF-8?q?ture=20on=20dashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- argos/server/static/styles.css | 11 ++++ argos/server/templates/index.html | 99 +++++++++++++++++++++++++++---- 2 files changed, 100 insertions(+), 10 deletions(-) diff --git a/argos/server/static/styles.css b/argos/server/static/styles.css index f1d80a8..29ec6d5 100644 --- a/argos/server/static/styles.css +++ b/argos/server/static/styles.css @@ -15,3 +15,14 @@ code { margin-top: 0; margin-bottom: 1rem; } + +.inline-label { + display: inline-block; +} +.initial-width { + width: initial !important; +} +#auto-refresh-form, +#refresh-delay-li { + display: none; +} diff --git a/argos/server/templates/index.html b/argos/server/templates/index.html index e1b41bf..3ff4a39 100644 --- a/argos/server/templates/index.html +++ b/argos/server/templates/index.html @@ -1,28 +1,107 @@ {% extends "base.html" %} +{% block title %}

Dashboard

{% endblock %} {% block content %}
-

- {{ agents | length }} agent{% if agents| length > 1 %}s{% endif %} -

+
-
✅ OK
- {{ counts_dict['ok'] }} +
+ {{ counts_dict['unknown'] }}
-
⚠️ Warning
- {{ counts_dict['warning'] }} +
+ {{ counts_dict['ok'] }}
-
❌ Critical
- {{ counts_dict['critical'] }} +
⚠️
+ {{ counts_dict['warning'] }} +
+
+
+ {{ counts_dict['critical'] }}

- Details + + Domains +

+ {% endblock %}