blob: 9c9e5ec6ed688f534f32f41a0ac1afa37ce0c835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{% extends "template.html.j2" %}
{% block content %}
<article id=statusTables>
<section id=docker>
<h2>docker</h2>
<ul>
{% for host, containers in docker.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>
</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 %}
|