From ced83335a5a338cb9c24956b96da526465d94df8 Mon Sep 17 00:00:00 2001 From: ficus Date: Sat, 15 Sep 2012 22:50:14 +0200 Subject: refactor to distributable format --- templates/lib.html | 84 ------------------------------------------------------ 1 file changed, 84 deletions(-) delete mode 100644 templates/lib.html (limited to 'templates/lib.html') diff --git a/templates/lib.html b/templates/lib.html deleted file mode 100644 index 6ac5e12..0000000 --- a/templates/lib.html +++ /dev/null @@ -1,84 +0,0 @@ - - -{% macro ifstatus(ifstatus) -%} -{% if not ifstatus %} - -Network hardware not detected at all! - -{% else %} - - - - - - - - - - -
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 %}
- {% if ifstatus.radio_state %} -
Radio State - {{ ifstatus.radio_state }} -
SSID - {{ ifstatus.ssid }} -
Frequency - {{ ifstatus.freq }} -
Signal Strength - {{ ifstatus.signal_dbm }} - {% endif %} -
-{% endif %} -{%- endmacro %} - - -{% macro logbox(name, contents) -%} -

{{name}}

-{% if contents == None %} -Access to {{name}} was denied, or file did not exist. -{% else %} -
-
-{{ contents }}
-
-
-{% endif%} -{%- endmacro %} - - -{% macro forminput(form, formerr, name, title, placeholder) -%} -
- -
- - {% if formerr[name] %} - {{ formerr[name] }} - {% endif %} -
-
-{%- endmacro %} - -{% macro formcheckbox(form, formerr, name, title, value) -%} - -{% endmacro %} -- cgit v1.2.3