luci-theme-material: add again no password set hint
This was accidentally deleted with commit:
bec2c7e2b5
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
9d128aef3e
commit
f464199be1
1 changed files with 7 additions and 1 deletions
|
@ -73,7 +73,13 @@
|
||||||
<div id="maincontent">
|
<div id="maincontent">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% if (getuid() == 0 && getspnam('root')?.pwdp === ''): %}
|
{% if (getuid() == 0 && getspnam('root')?.pwdp === ''): %}
|
||||||
<!-- no password set -->
|
<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 (dispatcher.lookup("admin/system/admin")): %}
|
||||||
|
<div class="right"><a class="btn" href="{{ dispatcher.build_url("admin/system/admin") }}">{{ _('Go to password configuration...') }}</a></div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if (boardinfo?.rootfs_type == "initramfs"): %}
|
{% if (boardinfo?.rootfs_type == "initramfs"): %}
|
||||||
|
|
Loading…
Reference in a new issue