diff options
author | Steven Barth <steven@midlink.org> | 2008-07-05 10:31:58 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-05 10:31:58 +0000 |
commit | dc5dfb5da06e3acb622a4471eb99d803fb09e664 (patch) | |
tree | f58eead6d7667140ab463fb7fe580fd7eb0166b1 /themes/fledermaus/luasrc/view | |
parent | 653f5e2361c667b7f6dda0d6b20dbc42b4b7c7da (diff) |
* modules/admin-core: Add translation for UCI changes, revert and apply page title
Diffstat (limited to 'themes/fledermaus/luasrc/view')
-rw-r--r-- | themes/fledermaus/luasrc/view/themes/fledermaus/header.htm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm index f1343a0e1..6fd96919f 100644 --- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm +++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm @@ -66,7 +66,9 @@ local function submenu(prefix, node) end local index = {} for k, n in pairs(node.nodes) do - table.insert(index, {name=k, order=n.order or 100}) + if n.title and n.target then + table.insert(index, {name=k, order=n.order or 100}) + end end table.sort(index, function(a, b) return a.order < b.order end) @@ -96,7 +98,7 @@ if cattree and cattree.nodes then for i, k in ipairs(index) do node = cattree.nodes[k.name] - if node.title then + if 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 %> <div<% if node._menu_selected then %> class="yellowtext"<%end%>><a href="<%=controller%>/<%=category%>/<%=k.name%>"><%=node.title%></a> |