diff --git a/plinth/modules/firewall/templates/firewall.html b/plinth/modules/firewall/templates/firewall.html index 2b753d485..ac0ee6f75 100644 --- a/plinth/modules/firewall/templates/firewall.html +++ b/plinth/modules/firewall/templates/firewall.html @@ -38,65 +38,61 @@ {% else %} -
-
- - - - - - +
{% trans "Show Ports" %}
{% trans "Service/Port" %}{% trans "Status" %}
+ + + + + - - {% for service in services|dictsort:"name" %} - {% if service.ports %} - - - - - - {% for port in service.ports %} - - - - - - {% endfor %} - {% endif %} + + {% for service in services|dictsort:"name" %} + {% if service.ports %} + + + + + + {% for port in service.ports %} + + + + + {% endfor %} - -
{% trans "Show Ports" %}
{% trans "Service/Port" %}{% trans "Status" %}
-
- -
-
{{ service.name }} - {% if service.is_enabled %} - - {% trans "Enabled" %} - {% else %} - - {% trans "Disabled" %} - {% endif %} -
{{ port }} - {% if port in internal_enabled_services and port in external_enabled_services %} - - {% trans "Permitted" %} - {% elif port in internal_enabled_services %} - - {% trans "Permitted (internal only)" %} - {% elif port in external_enabled_services %} - - {% trans "Permitted (external only)" %} - {% else %} - - {% trans "Blocked" %} - {% endif %} -
+
+ +
+
{{ service.name }} + {% if service.is_enabled %} + + {% trans "Enabled" %} + {% else %} + + {% trans "Disabled" %} + {% endif %} +
{{ port }} + {% if port in internal_enabled_services and port in external_enabled_services %} + + {% trans "Permitted" %} + {% elif port in internal_enabled_services %} + + {% trans "Permitted (internal only)" %} + {% elif port in external_enabled_services %} + + {% trans "Permitted (external only)" %} + {% else %} + + {% trans "Blocked" %} + {% endif %} +
-
-
+ {% endif %} + {% endfor %} + +