luci-app-firewall: only show portforward template if there are more then one zone
Only show portforward template if there are more then one zone. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
fa756d1fbb
commit
846fb1f8bc
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
local fw = require "luci.model.firewall".init()
|
||||
local wz = fw:get_zone("wan")
|
||||
local lz = fw:get_zone("lan")
|
||||
local zones = fw:get_zones()
|
||||
%>
|
||||
|
||||
<div class="cbi-section-create cbi-tblsection-create">
|
||||
|
@ -38,7 +39,7 @@
|
|||
</tr>
|
||||
</table>
|
||||
<% end %>
|
||||
<% if wz and lz then %>
|
||||
<% if #zones > 1 then %>
|
||||
<table class="cbi-section-table" style="margin-left:5px">
|
||||
<tr class="cbi-section-table-titles">
|
||||
<th class="cbi-section-table-cell left" colspan="6"><br /><%:New forward rule%>:</th>
|
||||
|
|
Loading…
Reference in a new issue