X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-adblock%2Fluasrc%2Fview%2Fadblock%2Fblocklist.htm;h=b4b62db5f42da51a6495f4726f6429eac8a56b9d;hp=aae64075ffc781ec43988971e76b700ed0251ee2;hb=HEAD;hpb=931531310e2f125ec905b061ab0bbf43236704d1 diff --git a/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm b/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm index aae64075f..b4b62db5f 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/blocklist.htm @@ -22,15 +22,27 @@ end -%>
@@ -39,7 +51,6 @@ end <%- end %>
<%=self.description%>
- <%- local count = 0 -%> <%- if self.sectionhead then -%> @@ -51,7 +62,7 @@ end - <%- count = count + 1; end; -%> + <%- end -%> <%- local isempty = true for i, k in ipairs(self:cfgsections()) do @@ -60,19 +71,15 @@ end scope = { valueheader = "cbi/cell_valueheader", valuefooter = "cbi/cell_valuefooter" } -%> - + <%- for k, node in ipairs(self.children) do - if not node.optional then - node:render(section, scope or {}) - end + node:render(section, scope or {}) end + if not scope.cbid:match("adb_src_cat") then -%> - - <%- end -%> - <%- if isempty then -%> - - + + <%- end -%> <%- end -%>
> <%-=k.title-%>
<%=k%><%=k%>

<%:This section contains no values yet%>