summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
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>