* Merged Luci to use native UCI-library
[project/luci.git] / themes / fledermaus / luasrc / view / themes / fledermaus / header.htm
index cb37855..1b7c875 100644 (file)
@@ -119,15 +119,16 @@ end
                </div>
                <%
                        if "admin" == request[1] then
-                               require("luci.model.uci") 
-                               local ucic = luci.model.uci.changes()
-                               if ucic then
-                                       ucic = #luci.util.split(ucic)
+                               local ucic = 0
+                               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>
@@ -138,4 +139,4 @@ end
                </div>
                <% end %>
        </div>
-       <div id="content">
\ No newline at end of file
+       <div id="content">