mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +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 %}
|
{% else %}
|
||||||
|
|
||||||
<div class="row">
|
<table class='table table-autowidth'>
|
||||||
<div class="col-lg-8">
|
<thead>
|
||||||
<table class='table table-autowidth'>
|
<th><center>{% trans "Show Ports" %}</center></th>
|
||||||
<thead>
|
<th>{% trans "Service/Port" %}</th>
|
||||||
<th><center>{% trans "Show Ports" %}</center></th>
|
<th>{% trans "Status" %}</th>
|
||||||
<th>{% trans "Service/Port" %}</th>
|
</thead>
|
||||||
<th>{% trans "Status" %}</th>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for service in services|dictsort:"name" %}
|
{% for service in services|dictsort:"name" %}
|
||||||
{% if service.ports %}
|
{% if service.ports %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<center>
|
<center>
|
||||||
<button data-toggle="collapse"
|
<button data-toggle="collapse"
|
||||||
data-target=".{{service.service_id}}"
|
data-target=".{{service.service_id}}"
|
||||||
class="btn btn-info btn-xs">+</button>
|
class="btn btn-info btn-xs">+</button>
|
||||||
</center>
|
</center>
|
||||||
</td>
|
</td>
|
||||||
<td><strong>{{ service.name }}</strong></td>
|
<td><strong>{{ service.name }}</strong></td>
|
||||||
<td>
|
<td>
|
||||||
{% if service.is_enabled %}
|
{% if service.is_enabled %}
|
||||||
<span class='label label-success'>
|
<span class='label label-success'>
|
||||||
{% trans "Enabled" %}</span>
|
{% trans "Enabled" %}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class='label label-warning'>
|
<span class='label label-warning'>
|
||||||
{% trans "Disabled" %}</span>
|
{% trans "Disabled" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% for port in service.ports %}
|
{% for port in service.ports %}
|
||||||
<tr class="collapse out {{service.service_id}}"
|
<tr class="collapse out {{service.service_id}}"
|
||||||
style="background-color: #f9f9f9" >
|
style="background-color: #f9f9f9" >
|
||||||
<td></td>
|
<td></td>
|
||||||
<td class='cell-indented'><em>{{ port }}</em></td>
|
<td class='cell-indented'><em>{{ port }}</em></td>
|
||||||
<td>
|
<td>
|
||||||
{% if port in internal_enabled_services and port in external_enabled_services %}
|
{% if port in internal_enabled_services and port in external_enabled_services %}
|
||||||
<span class='label label-success'>
|
<span class='label label-success'>
|
||||||
{% trans "Permitted" %}</span>
|
{% trans "Permitted" %}</span>
|
||||||
{% elif port in internal_enabled_services %}
|
{% elif port in internal_enabled_services %}
|
||||||
<span class='label label-warning'>
|
<span class='label label-warning'>
|
||||||
{% trans "Permitted (internal only)" %}</span>
|
{% trans "Permitted (internal only)" %}</span>
|
||||||
{% elif port in external_enabled_services %}
|
{% elif port in external_enabled_services %}
|
||||||
<span class='label label-warning'>
|
<span class='label label-warning'>
|
||||||
{% trans "Permitted (external only)" %}</span>
|
{% trans "Permitted (external only)" %}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class='label label-danger'>
|
<span class='label label-danger'>
|
||||||
{% trans "Blocked" %}</span>
|
{% trans "Blocked" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
{% endif %}
|
||||||
</table>
|
{% endfor %}
|
||||||
</div>
|
</tbody>
|
||||||
</div>
|
</table>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<em>
|
<em>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user