-
<%- for j, v in pairs(index) do
- if #v.name > 0 then
+ if not v.hidden and #v.name > 0 then
local nnode = node.nodes[v.name]
local href = controller .. prefix .. v.name
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
@@ -130,7 +130,7 @@ if cattree and cattree.nodes then
for i, k in ipairs(index) do
node = cattree.nodes[k.name]
- if node.title and node.target then
+ if not node.hidden and node.title and node.target then
local href = controller.."/"..category.."/"..k.name
href = (k.query) and href .. luci.http.build_querystring(k.query) or href %>
class="preactive"<%end%>><%=node.title%>
@@ -144,7 +144,7 @@ end