{% extends "base.html" %}{% set active = 'devices' %} {% block content %}

Devices {{ rows|length }}

{% for d, ports in rows %} {% endfor %}
StateNameIPMACVendorHostnameOpen portsFindingsLast seen
{{ 'online' if d.online else 'offline' }} {{ d.name or d.hostname or d.vendor or d.key }} {% if d.kind or d.watch %}
{% endif %}{% if d.kind %}{{ d.kind }}{% endif %}{% if d.watch %} watched{% endif %}
{{ d.ip or '-' }} {{ d.mac or '-' }}{% if d.private_mac %} private{% endif %} {{ d.vendor or '-' }}{% if d.vm %} VM{% endif %} {{ d.hostname or '-' }} {{ ports or '-' }} {% if open_by_dev.get(d.id) %}{{ open_by_dev[d.id] }}{% else %}-{% endif %} {{ d.last_seen | local }}
{% endblock %}