{% extends "base.html" %} {% comment %} # SPDX-License-Identifier: AGPL-3.0-or-later {% endcomment %} {% load bootstrap %} {% load i18n %} {% block content %}

{{ title }}

{% if not device_access_points %}

{% trans "No Wi-Fi device detected." %}

{% else %}
{% for device in device_access_points %} {% if device_access_points|length > 1 %}

{% blocktrans trimmed with interface_name=device.interface_name %} Device: {{ interface_name }} {% endblocktrans %}

{% endif %}

{% trans "Last scanned: " %} {% if device.last_scan_time %} {{ device.last_scan_time|timesince }} {% else %} {% trans "never" %} {% endif %} {% if device.scan_requested %} {% endif %}

{% for access_point in device.access_points %}
{{ access_point.ssid_string }} {{ access_point.strength }}%
{% empty %}

{% trans "No Wi-Fi networks found." %}

{% endfor %}
{% endfor %}
{% endif %} {% endblock %}