Loading...
-
-
-
- <%-
- local function submenu(prefix, node)
- local childs = disp.node_childs(node)
- if #childs > 0 then
- %>
-
- <%=pcdata(striptags(translate(nnode.title)))%> - <%- - end - %> -
- <%=pcdata(striptags(translate(nnode.title)))%> + + <%- + end + %> +
- - <%=pcdata(striptags(translate(nnode.title)))%> - <%- submenu("/" .. category .. "/" .. r .. "/", nnode) %> - - <% else %> -
- - <%=pcdata(striptags(translate(nnode.title)))%> - - <% - end - end - end - %> -
- + <%=pcdata(striptags(translate(nnode.title)))%> + <%- submenu("/" .. category .. "/" .. r .. "/", nnode) %> + + <% else %> +
- + <%=pcdata(striptags(translate(nnode.title)))%> + + <% + end + end + end + %> + +
-
- <%-
- for i, r in ipairs(childs) do
- local nnode = node.nodes[r]
- local href = controller .. prefix .. r ..
- (nnode.query and http.build_querystring(nnode.query) or "")
- %>
-
+
Loading...
+
+
- -
+ <%-
+ local function submenu(prefix, node)
+ local childs = disp.node_childs(node)
+ if #childs > 0 then
+ %>
+
-
+ <%-
+ for i, r in ipairs(childs) do
+ local nnode = node.nodes[r]
+ local href = controller .. prefix .. r ..
+ (nnode.query and http.build_querystring(nnode.query) or "")
+ %>
+
-
-
-
- <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
-
+
-
- "><%:Go to password configuration...%> -
- <%- end -%>
- <% if category then subtree("/" .. category .. "/", cattree) end %>
+ if #grandchildren > 0 then
+ %>
+ <%:No password set!%>
- <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>- "><%:Go to password configuration...%> -
+
+
+
+ <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not
+ luci.sys.user.getpasswd("root") then -%>
+
+
+ "><%:Go to password + configuration...%> +
+ <%- end -%>
+ <% if category then subtree("/" .. category .. "/", cattree) end %>
<%:No password set!%>
+ <%:There is no password set on this router. Please configure a root password to protect the web + interface and enable SSH.%>+ "><%:Go to password + configuration...%> +