docker
{% for host, containers in docker.items() %}
{{ "%s - %s" % (host[0], host[1]) }}
{% for name, status, image in containers %}
{{ name }} |
{% if "Up" in status %}
{{ status }} |
{% else %}
{{ status }} |
{% endif %}
{{ image }} |
{% endfor %}
{% endfor %}
transmission
{% if trans == None %}
Couldn't access the transmission API. Is docker container running?
{% else %}
{% for k, v in trans.items() %}
{{ k }} |
{{ v }} |
{% endfor %}
{% endif %}
pihole
{% if pihole == None %}
Couldn't access the pihole API. Is docker container running?
{% else %}
{% for k, v in pihole.items() %}
{{ k }} |
{{ v }} |
{% endfor %}
{% endif %}
{% endblock %}