summaryrefslogtreecommitdiffhomepage
path: root/themes/openwrt.org/luasrc/view
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-16 10:48:39 +0000
committerSteven Barth <steven@midlink.org>2008-07-16 10:48:39 +0000
commit65cde96c5b05e04c24b0f272b577df67193d7c0b (patch)
tree7d1b59b19dc77b860045f9197c2c63985e48571d /themes/openwrt.org/luasrc/view
parent429473aed896a8f038d8934c8711a29366a894c5 (diff)
Several small cleanups and improvements
modules/admin-mini: Added reboot page
Diffstat (limited to 'themes/openwrt.org/luasrc/view')
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm14
1 files changed, 7 insertions, 7 deletions
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 c7908c0c5a..df31154c0a 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -91,7 +91,7 @@ end
<div class="menubar">
<div id="mainmenu" class="mainmenu">
-<%
+<%-
local function submenu(prefix, node)
if not node.nodes then
return false
@@ -110,7 +110,7 @@ local function submenu(prefix, node)
if count > 0 then
%>
<ul>
- <% for j, v in pairs(index) do
+ <%- for j, v in pairs(index) do
if #v.name > 0 then
local nnode = node.nodes[v.name]
local href = controller .. prefix .. v.name
@@ -118,12 +118,12 @@ local function submenu(prefix, node)
%>
<li>
<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>
- <% end %>
- <% end %>
+ <%- end %>
+ <%- end %>
</ul>
-<%
+<%-
end
end
@@ -172,7 +172,7 @@ end
<div class="mainmenu" style="float:right; margin-right:2em">
<div>
<% if ucic > 0 then %>
- <a href="<%=controller%>/<%=category%>/uci/changes"><%:changes%>: <%=ucic%></a>
+ <a class="warning" href="<%=controller%>/<%=category%>/uci/changes"><%:unsavedchanges%>: <%=ucic%></a>
<ul>
<li><a href="<%=controller%>/<%=category%>/uci/apply"><%:apply%></a></li>
<li><a href="<%=controller%>/<%=category%>/uci/revert"><%:revert%></a></li>