* luci/themes/openwrt.org: workaround for empty menu points (seen in statistics)
This commit is contained in:
parent
79a35fe825
commit
6a0a1a5496
1 changed files with 5 additions and 3 deletions
|
@ -111,14 +111,16 @@ local function submenu(prefix, node)
|
||||||
%>
|
%>
|
||||||
<ul>
|
<ul>
|
||||||
<% for j, v in pairs(index) do
|
<% for j, v in pairs(index) do
|
||||||
local nnode = node.nodes[v.name]
|
if #v.name > 0 then
|
||||||
local href = controller .. prefix .. v.name
|
local nnode = node.nodes[v.name]
|
||||||
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
|
local href = controller .. prefix .. v.name
|
||||||
|
href = (nnode.query) and href .. luci.http.build_querystring(nnode.query) or href
|
||||||
%>
|
%>
|
||||||
<li>
|
<li>
|
||||||
<span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=href%>"><%=nnode.title%></a></span>
|
<span<% if nnode._menu_selected then %> class="active"<%end%>><a href="<%=href%>"><%=nnode.title%></a></span>
|
||||||
<% submenu(prefix .. v.name .. "/", nnode) %>
|
<% submenu(prefix .. v.name .. "/", nnode) %>
|
||||||
</li>
|
</li>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<%
|
<%
|
||||||
|
|
Loading…
Reference in a new issue