From 95a5c95842de869cfd7c8e9d1c824dc0780af949 Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 22 Dec 2021 19:35:12 +0000 Subject: renamed all template files --- templates/services.jinja | 113 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 templates/services.jinja (limited to 'templates/services.jinja') diff --git a/templates/services.jinja b/templates/services.jinja new file mode 100644 index 0000000..9ea1d3f --- /dev/null +++ b/templates/services.jinja @@ -0,0 +1,113 @@ +{% 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 requests{{pihole["blocked"]}}
domains in blocklist{{pihole["domains"]}}
last updated{{pihole["last_updated"]}}
+ {% endif %} +
+
+{% endblock %} \ No newline at end of file -- cgit v1.2.3