X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=themes%2Fopenwrt.org%2Fluasrc%2Fview%2Fthemes%2Fopenwrt.org%2Fheader.htm;h=1ae5df92299f6c5f34cf09b407674cd7cd39ef57;hb=40fbc2d7c25b3994e33567e5983f76ed7a615d2e;hp=ea30cbbd4d4cc8d3665102cea538730d16215f61;hpb=15886656187565d990230b681cdcd1221ffc3d8b;p=project%2Fluci.git diff --git a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm index ea30cbbd4..1ae5df922 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -19,11 +19,11 @@ local request = require("luci.dispatcher").context.path local category = request[1] local tree = luci.dispatcher.node() local cattree = category and luci.dispatcher.node(category) -local node = luci.dispatcher.context.dispatched +local node = luci.dispatcher.context.dispatched local c = tree for i,r in ipairs(request) do - if c.nodes and c.nodes[r] then + if c.nodes and c.nodes[r] then c = c.nodes[r] c._menu_selected = true end @@ -32,7 +32,9 @@ end require("luci.i18n").loadc("default") require("luci.http").prepare_content("text/html") -%> +-%> + + @@ -41,14 +43,31 @@ require("luci.http").prepare_content("text/html") LuCI - Lua Configuration Interface - <%=(node and node.title)%> + + - +