{% extends 'base.html' %} {% from '_partials/page_header.html' import page_header %} {% block title %}Web Terminal{% endblock %} {% block content %} {{ page_header('Web Terminal') }}

Pick a port to open its console. Ports grouped by USB hub. free in use

{% set hubs = [('Hub 1', ports[0:4]), ('Hub 2', ports[4:8]), ('Hub 3', ports[8:12]), ('Hub 4', ports[12:16]), ('Hub 5', ports[16:20]), ('Hub 6', ports[20:24])] %}
{% for hub_name, hub_ports in hubs %}

{{ hub_name }}

{% for p in hub_ports %} {% set conn = (connections | selectattr('device', 'equalto', p.device) | list | first) %} {% set enabled = conn and conn.enable == 'on' %} {% if enabled %}
{{ p.label }}
tcp {{ conn.port }} · {{ conn.params }}
{% else %}
{{ p.label }}
not configured
{% endif %} {% endfor %}
{% endfor %}
{% endblock %}