{% 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 }}
SSID Broadcast? {{ ifstatus.ssid_broadcast }}
Channel {{ ifstatus.channel }}
TX Power {{ ifstatus.tx_power }}
Auth Mode {{ ifstatus.auth_mode }}
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 %}