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 authored and Veiko Aasa committed 2020-09-04 16:32:22 +03:00
1 parent 4aa8e6da09
commit 495f93af24
1 file changed
+18 -5
+18 -5
View File
@@ -15,9 +15,22 @@
{% endblocktrans %}
</p>
<ul>
{% for port in port_forwarding_info %}
<li>{{ port.0 }} {{ port.1 }}</li>
{% endfor %}
</ul>
<table class="table table-condensed">
<thead>
<tr>
<th>{% trans "Protocol" %}</th>
<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 %}