summaryrefslogtreecommitdiffhomepage
path: root/themes/fledermaus/luasrc/view
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-05 19:16:38 +0000
committerSteven Barth <steven@midlink.org>2008-06-05 19:16:38 +0000
commitdd9606825da5d73883b8313f5af905ea1b2a4d7d (patch)
tree1f853ae56dd8e3051698ac6d0a38d61bf6d6997f /themes/fledermaus/luasrc/view
parent75f3dbaa6136a1288fbe92d80fc127f5228f5d64 (diff)
* Merged Luci to use native UCI-library
Diffstat (limited to 'themes/fledermaus/luasrc/view')
-rw-r--r--themes/fledermaus/luasrc/view/themes/fledermaus/header.htm12
1 files changed, 4 insertions, 8 deletions
diff --git a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
index 32d844f01..1b7c87532 100644
--- a/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
+++ b/themes/fledermaus/luasrc/view/themes/fledermaus/header.htm
@@ -119,20 +119,16 @@ end
</div>
<%
if "admin" == request[1] then
- require("luci.model.uci")
local ucic = 0
- local changes = luci.model.uci.changes()
- if type(changes) == "table" then -- XXX: sometimes string or nil / needs investigation
- for n, s in pairs(changes) do
- for no, o in pairs(s) do
- ucic = ucic + 1;
- end
+ for n, s in pairs(require("luci.model.uci").changes()) do
+ for no, o in pairs(s) do
+ ucic = ucic + 1;
end
end
%>
<div><%:config Konfiguration%>
<ul>
- <% if ucic then %>
+ <% if ucic > 0 then %>
<li><a href="<%=controller%>/admin/uci/changes"><%:changes Ă„nderungen%>: <%=ucic%></a></li>
<li><a href="<%=controller%>/admin/uci/apply"><%:apply Anwenden%></a></li>
<li><a href="<%=controller%>/admin/uci/revert"><%:revert Verwerfen%></a></li>