From c4b59d34db126a4d3471162ff34a04661ff41c99 Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 2 Feb 2021 15:58:31 +0000 Subject: added status page with timeouts --- templates/services.html | 105 ++++++++++++++++++++++++++++++++++++++++++++++++ templates/template.html | 1 + 2 files changed, 106 insertions(+) create mode 100644 templates/services.html (limited to 'templates') diff --git a/templates/services.html b/templates/services.html new file mode 100644 index 0000000..321a7a0 --- /dev/null +++ b/templates/services.html @@ -0,0 +1,105 @@ +{% extends "template.html" %} +{% block content %} +
+
+

docker

+ {% if docker == None %} +

Couldn't access the docker API. Is sherpa running?

+ {% else %} + + {% for name, status in docker.items() %} + + + {% if status == "running" %} + + {% else %} + + {% endif %} + + {% endfor %} +
{{name}}{{status}}{{status}}
+ {% endif %} +
+
+

qbittorrent

+ {% if qbit == None %} +

Couldn't access the qbittorrent API. Is docker container running?

+ {% else %} + + + + + + + + + + + + + + + + + +
downloaded{{qbit["bytes_dl"]}}
uploaded{{qbit["bytes_up"]}}
torrents{{qbit["num"]}}
ratio{{qbit["ratio"]}}
+ {% endif %} +

transmission

+ {% if trans == None %} +

Couldn't access the transmission API. Is docker container running?

+ {% else %} + + + + + + + + + + + + + + + + + +
downloaded{{trans["bytes_dl"]}}
uploaded{{trans["bytes_up"]}}
torrents{{trans["num"]}}
ratio{{trans["ratio"]}}
+ {% endif %} +
+
+

pihole

+ {% if pihole == None %} +

Couldn't access the pihole API. Is docker container running?

+ {% else %} + + + + {% if pihole["status"] == "enabled" %} + + {% else %} + + {% endif %} + + + + + + + + + + + + + + + + + +
status{{pihole["status"]}}{{pihole["status"]}}
queries{{pihole["queries"]}}
clients{{pihole["clients"]}}
percentage blocked{{pihole["percentage"]}}%
blocked{{pihole["blocked"]}}
+ {% endif %} +
+
+{% endblock %} \ No newline at end of file diff --git a/templates/template.html b/templates/template.html index d6c1a0b..6b0d894 100644 --- a/templates/template.html +++ b/templates/template.html @@ -2,6 +2,7 @@ + edaweb :: {{title}}
-- cgit v1.2.3