lui-theme-material: add again no password set hint
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 29 Mar 2023 06:59:27 +0000 (08:59 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 29 Mar 2023 07:20:30 +0000 (09:20 +0200)
This was accidentally deleted with commit:
bec2c7e2b50e062575f3649ccd76b81af41b9820

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
themes/luci-theme-material/luasrc/view/themes/material/header.htm

index 2b890da034662781a9e97ddb393939b5f617c8d6..47f7e4d5ed5cb7f380683bc6892bad4e07b24533 100644 (file)
                <div class="darkMask"></div>
                <div id="maincontent">
                        <div class="container">
-                               <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and path ~= "admin-system-admin-password" then -%>
+                               <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
+                                       <div class="alert-message warning">
+                                               <h4><%:No password set!%></h4>
+                                               <p><%:There is no password set on this router. Please configure a root password to protect the web interface.%></p>
+                                               <%- if disp.lookup("admin/system/admin") then -%>
+                                                       <div class="right"><a class="btn" href="<%=url("admin/system/admin")%>"><%:Go to password configuration...%></a></div>
+                                               <%- end -%>
+                                       </div>
                                <%- end -%>
-
                                <noscript>
                                        <div class="alert-message warning">
                                                <h4><%:JavaScript required!%></h4>