{% if devices and devices|length > 0 %}
{% for device in devices %}
{{ device.device_name }}
{{ device.serial_number }}
{{ _('ip_address_label') }}: {{ device.ip_address or 'N/A' }}
{{ _('status') }}: {% if device.is_connected %} {{ _('online') }} {% else %} {{ _('offline') }} {% endif %}
{{ _('type_short') }}: {% set dtype = (device.device_type or '')|lower %} {% if 'client' in dtype %} TCP Client {% elif 'server' in dtype %} TCP Server {% else %} {{ device.device_type or '-' }} {% endif %}
{% if (user_type or '') == 'personnel' %} {% elif (user_type or '') == 'guest' %} {% else %} {% endif %}
{{ _('tap') }}
{% endfor %}
{% else %}
{{ _('no_devices_yet') }}

{{ _('no_assigned_devices') }}

{% endif %}
{{ _('processing_action') }}
{{ _('please_wait_small') }}