From 1e7ef0b3e456e7e14b32ca1a890f7d472736e2b9 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 15 Dec 2020 13:50:52 -0800 Subject: [PATCH] firewall: New styling for status stable - Drop separate column for showing ports and add a dropdown icon next to the app name. - Manage widths so that table widths don't jump when expanded. Tested with smaller screen size. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- .../modules/firewall/templates/firewall.html | 48 ++++++++++++++----- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/plinth/modules/firewall/templates/firewall.html b/plinth/modules/firewall/templates/firewall.html index 888ff2184..d97933749 100644 --- a/plinth/modules/firewall/templates/firewall.html +++ b/plinth/modules/firewall/templates/firewall.html @@ -5,6 +5,31 @@ {% load i18n %} +{% block page_head %} + +{% endblock %} + {% block configuration %}

{% trans "Status" %}

@@ -26,7 +51,6 @@
- @@ -35,15 +59,15 @@ {% for component in components|dictsort:"name" %} {% if component.ports %} - - - - - -
{% trans "Show Ports" %}
{% trans "Service/Port" %} {% trans "Status" %}
-
- -
+
+ {{ component.name }} + {% if component.is_enabled %} {% trans "Enabled" %} @@ -56,13 +80,13 @@ {% for port in component.ports_details %}
{{ port.name }}: + + {{ port.name }}: {% for port_number, protocol in port.details %} {{ port_number }}/{{ protocol }} {% endfor %} + {% if port.name in internal_enabled_ports and port.name in external_enabled_ports %} {% trans "Permitted" %}