From a304d7a56563b16ca98d9b45ebed521c52f6347c Mon Sep 17 00:00:00 2001 From: ficus Date: Fri, 14 Sep 2012 20:10:43 +0200 Subject: backup WIP --- templates/lib.html | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 templates/lib.html (limited to 'templates/lib.html') diff --git a/templates/lib.html b/templates/lib.html new file mode 100644 index 0000000..33534da --- /dev/null +++ b/templates/lib.html @@ -0,0 +1,41 @@ + +{% macro ifstatus(ifstatus) -%} + + + + + + +
Interface Name + {{ ifstatus.ifname }} +
Status + + {{ ifstatus.state }} + +
MAC Address + {{ ifstatus.mac }} +
IPv4 Addresses + + {% for addr in ifstatus.ipv4addrs %} + {{ addr.addr }}/{{ addr.prefix}} ({{ addr.scope }})
+ {% endfor %}
+
IPv6 Addresses + + {% for addr in ifstatus.ipv6addrs %} + {{ addr.addr }}/{{ addr.prefix}} ({{ addr.scope }})
+ {% endfor %}
+
+{%- endmacro %} + +{% macro logbox(name, contents) -%} +

{{name}}

+{% if contents == None %} +Access to {{name}} was denied, or file did not exist. +{% else %} + +
+{{ contents }}
+
+{% endif%} +{%- endmacro %} -- cgit v1.2.3