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