mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
firewall: Resize the info table to full width
Signed-off-by: Manish Tripathy <manisht@thougtworks.com> Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
ee80d77be5
commit
b162a2bc04
@ -38,65 +38,61 @@
|
||||
|
||||
{% else %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8">
|
||||
<table class='table table-autowidth'>
|
||||
<thead>
|
||||
<th><center>{% trans "Show Ports" %}</center></th>
|
||||
<th>{% trans "Service/Port" %}</th>
|
||||
<th>{% trans "Status" %}</th>
|
||||
</thead>
|
||||
<table class='table table-autowidth'>
|
||||
<thead>
|
||||
<th><center>{% trans "Show Ports" %}</center></th>
|
||||
<th>{% trans "Service/Port" %}</th>
|
||||
<th>{% trans "Status" %}</th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for service in services|dictsort:"name" %}
|
||||
{% if service.ports %}
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<button data-toggle="collapse"
|
||||
data-target=".{{service.service_id}}"
|
||||
class="btn btn-info btn-xs">+</button>
|
||||
</center>
|
||||
</td>
|
||||
<td><strong>{{ service.name }}</strong></td>
|
||||
<td>
|
||||
{% if service.is_enabled %}
|
||||
<span class='label label-success'>
|
||||
{% trans "Enabled" %}</span>
|
||||
{% else %}
|
||||
<span class='label label-warning'>
|
||||
{% trans "Disabled" %}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% for port in service.ports %}
|
||||
<tr class="collapse out {{service.service_id}}"
|
||||
style="background-color: #f9f9f9" >
|
||||
<td></td>
|
||||
<td class='cell-indented'><em>{{ port }}</em></td>
|
||||
<td>
|
||||
{% if port in internal_enabled_services and port in external_enabled_services %}
|
||||
<span class='label label-success'>
|
||||
{% trans "Permitted" %}</span>
|
||||
{% elif port in internal_enabled_services %}
|
||||
<span class='label label-warning'>
|
||||
{% trans "Permitted (internal only)" %}</span>
|
||||
{% elif port in external_enabled_services %}
|
||||
<span class='label label-warning'>
|
||||
{% trans "Permitted (external only)" %}</span>
|
||||
{% else %}
|
||||
<span class='label label-danger'>
|
||||
{% trans "Blocked" %}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<tbody>
|
||||
{% for service in services|dictsort:"name" %}
|
||||
{% if service.ports %}
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<button data-toggle="collapse"
|
||||
data-target=".{{service.service_id}}"
|
||||
class="btn btn-info btn-xs">+</button>
|
||||
</center>
|
||||
</td>
|
||||
<td><strong>{{ service.name }}</strong></td>
|
||||
<td>
|
||||
{% if service.is_enabled %}
|
||||
<span class='label label-success'>
|
||||
{% trans "Enabled" %}</span>
|
||||
{% else %}
|
||||
<span class='label label-warning'>
|
||||
{% trans "Disabled" %}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% for port in service.ports %}
|
||||
<tr class="collapse out {{service.service_id}}"
|
||||
style="background-color: #f9f9f9" >
|
||||
<td></td>
|
||||
<td class='cell-indented'><em>{{ port }}</em></td>
|
||||
<td>
|
||||
{% if port in internal_enabled_services and port in external_enabled_services %}
|
||||
<span class='label label-success'>
|
||||
{% trans "Permitted" %}</span>
|
||||
{% elif port in internal_enabled_services %}
|
||||
<span class='label label-warning'>
|
||||
{% trans "Permitted (internal only)" %}</span>
|
||||
{% elif port in external_enabled_services %}
|
||||
<span class='label label-warning'>
|
||||
{% trans "Permitted (external only)" %}</span>
|
||||
{% else %}
|
||||
<span class='label label-danger'>
|
||||
{% trans "Blocked" %}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<em>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user