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 8fb5fcb..2729393 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 ea9ce02..19f0614 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 -%>