themes/openwrt: add a link to password change page in password change prompt

This commit is contained in:
Jo-Philipp Wich 2011-10-15 03:29:00 +00:00
parent 64bc95cb47
commit 632632f92b
2 changed files with 7 additions and 1 deletions

View file

@ -803,6 +803,11 @@ div.cbi-tab-descr {
margin-bottom: 5px;
}
.errorbox a {
color: #000000 !important;
}
.uci-change-list {
font-family: monospace;
}

View 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 -%>