summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-07-29 15:33:28 +0000
committerSteven Barth <steven@midlink.org>2008-07-29 15:33:28 +0000
commitf8f4fe752307e1d0c042496b642aa691589c2a5f (patch)
treef538b93456733a1b8e2d0cfc08a84c72a6d49694 /themes
parent43ffb3aacbe78fd7ed19217c23438f14acaa27f5 (diff)
modules: Redesigned configuration save, apply, save & apply menu options
Diffstat (limited to 'themes')
-rw-r--r--themes/fledermaus/luasrc/view/themes/fledermaus/header.htm10
-rw-r--r--themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm5
2 files changed, 5 insertions, 10 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index 5abe5d4ee..30aa57d86 100644
--- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
+++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
@@ -146,15 +146,13 @@ end
end
%>
<div><%:config%>
- <ul>
<% if ucic > 0 then %>
- <li><a href="<%=controller%>/admin/uci/changes"><%:changes%>: <%=ucic%></a></li>
- <li><a href="<%=controller%>/admin/uci/apply"><%:apply%></a></li>
- <li><a href="<%=controller%>/admin/uci/revert"><%:revert%></a></li>
+ <% submenu(category .. "/uci/", tree.nodes[category].nodes["uci"]) -%>
<% else %>
- <li><%:changes%>: 0</li>
+ <ul>
+ <li><%:changes%>: 0</li>
+ </ul>
<% end %>
- </ul>
</div>
<% end %>
</div>
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 500a73bad..23b28a14c 100644
--- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
+++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm
@@ -174,10 +174,7 @@ end
<div>
<% if ucic > 0 then %>
<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>
- </ul>
+ <% submenu(category .. "/uci/", tree.nodes[category].nodes["uci"]) -%>
<% else %>
<a href="#"><%:changes%>: 0</a>
<% end %>