aboutsummaryrefslogtreecommitdiffstats
path: root/edaweb/templates/services.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2025-04-29 18:51:40 +0100
commit0e8ada1eff8799437c9be1bc2af10d6198fa8cad (patch)
tree65d40b0c83fc2477306d561d8b98741e8e6585c6 /edaweb/templates/services.html.j2
parent9e077a790919e2980111262fbde500a5cee828f8 (diff)
downloadboymoder.blog-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.tar.gz
boymoder.blog-0e8ada1eff8799437c9be1bc2af10d6198fa8cad.zip
Added inline HTML into blogposts, refactored a bit
Diffstat (limited to 'edaweb/templates/services.html.j2')
-rw-r--r--edaweb/templates/services.html.j259
1 files changed, 59 insertions, 0 deletions
diff --git a/edaweb/templates/services.html.j2 b/edaweb/templates/services.html.j2
new file mode 100644
index 0000000..9f42c7f
--- /dev/null
+++ b/edaweb/templates/services.html.j2
@@ -0,0 +1,59 @@
+{% extends "template.html.j2" %}
+{% block content %}
+<article id=statusTables>
+ <section id=docker>
+ <h2>docker</h2>
+ <ul>
+ {% for host, containers in docker["containers"].items() %}
+ <h4>{{ "%s - %s" % (host[0], host[1]) }}</h4>
+ <table>
+ {% for name, status, image in containers %}
+ <tr>
+ <td>{{ name }}</td>
+ {% if "Up" in status %}
+ <td class=running>{{ status }}</td>
+ {% else %}
+ <td class=notRunning>{{ status }}</td>
+ {% endif %}
+ <td>{{ image }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endfor %}
+ </ul>
+ <p>{{ docker["cachetime"] }}</p>
+ </section>
+
+ <section id="torrents">
+ <h2>transmission</h2>
+ {% if trans == None %}
+ <p>Couldn't access the transmission API. Is docker container running?</p>
+ {% else %}
+ <table>
+ {% for k, v in trans.items() %}
+ <tr>
+ <td>{{ k }}</td>
+ <td>{{ v }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+ </section>
+
+ <section id=pihole>
+ <h2>pihole</h2>
+ {% if pihole == None %}
+ <p>Couldn't access the pihole API. Is docker container running?</p>
+ {% else %}
+ <table>
+ {% for k, v in pihole.items() %}
+ <tr>
+ <td>{{ k }}</td>
+ <td>{{ v }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ {% endif %}
+ </section>
+</article>
+{% endblock %} \ No newline at end of file