mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
firewall: Show service name in port forwarding info table
- Also add CSS class for the table to aide functional tests. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
74a6042ed8
commit
ca13b7bd93
@ -173,6 +173,7 @@ def get_port_forwarding_info(app_):
|
||||
|
||||
for detail in port['details']:
|
||||
info['ports'].append({
|
||||
'name': port['name'],
|
||||
'protocol': detail[1].upper(),
|
||||
'ports': detail[0]
|
||||
})
|
||||
|
||||
@ -30,10 +30,11 @@
|
||||
{{ service_name }}:
|
||||
{% endblocktrans %}
|
||||
|
||||
<div class="table-responsive">
|
||||
<div class="table-responsive table-port-forwarding-info">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Service Name" %}</th>
|
||||
<th>{% trans "Protocol" %}</th>
|
||||
<th>{% trans "From Router/WAN Ports" %}</th>
|
||||
<th>{% blocktrans %}To {{box_name}} Ports{% endblocktrans %}</th>
|
||||
@ -42,6 +43,7 @@
|
||||
<tbody>
|
||||
{% for port in port_forwarding_info.ports %}
|
||||
<tr>
|
||||
<td>{{ port.name }}</td>
|
||||
<td>{{ port.protocol }}</td>
|
||||
<td>{{ port.ports }}</td>
|
||||
<td>{{ port.ports }}</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user