themes/openwrt: add a link to password change page in password change prompt
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 15 Oct 2011 03:29:00 +0000 (03:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 15 Oct 2011 03:29:00 +0000 (03:29 +0000)
themes/openwrt/htdocs/luci-static/openwrt.org/cascade.css
themes/openwrt/luasrc/view/themes/openwrt.org/header.htm

index 8fb5fcbb06ad5bf5c55dc5194c25c66a44fda888..272939373e689d1af8976cbd4f78cd72049542af 100644 (file)
@@ -803,6 +803,11 @@ div.cbi-tab-descr {
        margin-bottom: 5px;
 }
 
+.errorbox a {
+       color: #000000 !important;
+}
+
+
 .uci-change-list {
        font-family: monospace;
 }
index ea9ce02f27c6404b3b14804ca6d9c14643f5668b..19f061443a2546ad9b218bfaf27bd58676a046f0 100644 (file)
@@ -195,6 +195,7 @@ if tree.nodes[category] and tree.nodes[category].ucidata then
                <%- if luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%>
                <div class="errorbox">
                        <strong><%:No password set!%></strong><br />
-                       <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%>
+                       <%:There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.%><br />
+                       <a href="<%=pcdata(luci.dispatcher.build_url("admin/system/admin"))%>"><%:Go to password configuration...%></a>
                </div>
                <%- end -%>