summaryrefslogtreecommitdiffhomepage
path: root/themes
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
parent429473aed896a8f038d8934c8711a29366a894c5 (diff)
Several small cleanups and improvements
modules/admin-mini: Added reboot page
Diffstat (limited to 'themes')
-rw-r--r--themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css5
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm14
2 files changed, 12 insertions, 7 deletions
diff --git a/themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css b/themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css
index 2ca2cb4f6..0febd3b6e 100644
--- a/themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css
+++ b/themes/openwrt.org/htdocs/luci-static/openwrt.org/cascade.css
@@ -24,6 +24,11 @@ div#content ul {
margin-left: 2em;
}
+.warning {
+ color: red !important;
+ font-weight: bold;
+}
+
.clear {
clear: both;
height: 1px;
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 c7908c0c5..df31154c0 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>