firewall: Show port forwarding info in tabular format

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2020-09-02 14:45:49 -07:00 committed by Veiko Aasa
parent 4aa8e6da09
commit 495f93af24
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -15,9 +15,22 @@
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<ul> <table class="table table-condensed">
{% for port in port_forwarding_info %} <thead>
<li>{{ port.0 }} {{ port.1 }}</li> <tr>
{% endfor %} <th>{% trans "Protocol" %}</th>
</ul> <th>{% trans "From Router/WAN Ports" %}</th>
<th>{% blocktrans %}To {{box_name}} Ports{% endblocktrans %}</th>
</tr>
</thead>
<tbody>
{% for port in port_forwarding_info %}
<tr>
<td>{{ port.0 }}</td>
<td>{{ port.1 }}</td>
<td>{{ port.1 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %} {% endif %}