diff options
author | Steven Barth <steven@midlink.org> | 2008-07-15 13:42:54 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-15 13:42:54 +0000 |
commit | 012af10360aba063b96d34c3af81c1d50a8d3579 (patch) | |
tree | 998950a0f65070c3b20cd4d8197ecf0925fa62c6 /themes | |
parent | d0a622dce8163cb1f9d0a178127b7abda6c4e818 (diff) |
Generalized UCI changes display
i18n: some nicer looking translations
Diffstat (limited to 'themes')
-rw-r--r-- | themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm | 8 |
1 files changed, 4 insertions, 4 deletions
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 1ae5df922..7b711d062 100644 --- a/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm +++ b/themes/openwrt.org/luasrc/view/themes/openwrt.org/header.htm @@ -157,7 +157,7 @@ end </div> <% - if "admin" == request[1] then + if tree.nodes[category].ucidata then local ucic = 0 for i, j in pairs(require("luci.model.uci").changes()) do for k, l in pairs(j) do @@ -170,10 +170,10 @@ end <div class="mainmenu" style="float:right; margin-right:2em"> <div> <% if ucic > 0 then %> - <a href="<%=controller%>/admin/uci/changes"><%:changes%>: <%=ucic%></a> + <a href="<%=controller%>/<%=category%>/uci/changes"><%:changes%>: <%=ucic%></a> <ul> - <li><a href="<%=controller%>/admin/uci/apply"><%:apply%></a></li> - <li><a href="<%=controller%>/admin/uci/revert"><%:revert%></a></li> + <li><a href="<%=controller%>/<%=category%>/uci/apply"><%:apply%></a></li> + <li><a href="<%=controller%>/<%=category%>/uci/revert"><%:revert%></a></li> </ul> <% else %> <a href="#"><%:changes%>: 0</a> |