From b162a2bc04eb0f69cfede57cf47f55d1c2cc560b Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 18 Jun 2018 19:36:42 +0530 Subject: [PATCH] firewall: Resize the info table to full width Signed-off-by: Manish Tripathy Signed-off-by: Sunil Mohan Adapa Reviewed-by: Sunil Mohan Adapa --- .../modules/firewall/templates/firewall.html | 110 +++++++++--------- 1 file changed, 53 insertions(+), 57 deletions(-) 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 %} + +