From 56092738e83d44d788f6afe35ee256f40c96b0db Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 26 Jan 2014 16:26:51 +0100 Subject: [PATCH] prettier hosts overview --- nsupdate/main/templates/main/overview.html | 23 +++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/nsupdate/main/templates/main/overview.html b/nsupdate/main/templates/main/overview.html index 8100dfc..baa83c0 100644 --- a/nsupdate/main/templates/main/overview.html +++ b/nsupdate/main/templates/main/overview.html @@ -8,20 +8,25 @@ - + - - - - + + + {% for host in hosts %} - + - + - {% empty %} - + {% endfor %}
HostHost
Comment
AvailableFaultsIPv4 Address (last update)IPv6 Address (last update)CommentFaults
C / S
IPv4 Address
(last update)
IPv6 Address
(last update)
{{ host.subdomain }}.{{ host.domain.domain }}{{ host.subdomain }}.{{ host.domain.domain }} +
+ {{ host.comment }} +
{{ host.available|yesno }}C: {{ host.client_faults }} S: {{ host.server_faults }}{% if host.abuse_blocked %} ABUSE-BLOCKED{% elif host.abuse %} ABUSE{% endif %}{{ host.client_faults }} / {{ host.server_faults }} + {% if host.abuse_blocked %}
ABUSE-BLOCKED{% elif host.abuse %}
ABUSE{% endif %} +
{{ host.get_ipv4 }} +
{% if host.last_update_ipv4 %} ({{ host.last_update_ipv4|timesince }}, {% if not host.ssl_update_ipv4 %} @@ -32,6 +37,7 @@ {% endif %}
{{ host.get_ipv6 }} +
{% if host.last_update_ipv6 %} ({{ host.last_update_ipv6|timesince }}, {% if not host.ssl_update_ipv6 %} @@ -41,10 +47,9 @@ (unknown) {% endif %}
{{ host.comment }}
No hosts yet.
No hosts yet.