summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2023-03-29 09:49:38 +0200
committerFlorian Eckert <fe@dev.tdt.de>2023-03-29 10:34:20 +0200
commitf464199be131d43fca953337d37169f9be25187e (patch)
tree5e2789aa9b5acf5c47837e11c44cb462d5d2aa6c
parent9d128aef3ebc369e6fe11712f0291aac79c90c43 (diff)
luci-theme-material: add again no password set hint
This was accidentally deleted with commit: bec2c7e2b50e062575f3649ccd76b81af41b9820 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
-rw-r--r--themes/luci-theme-material/ucode/template/themes/material/header.ut8
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/luci-theme-material/ucode/template/themes/material/header.ut b/themes/luci-theme-material/ucode/template/themes/material/header.ut
index 24b2c73517..ed6a637978 100644
--- a/themes/luci-theme-material/ucode/template/themes/material/header.ut
+++ b/themes/luci-theme-material/ucode/template/themes/material/header.ut
@@ -73,7 +73,13 @@
<div id="maincontent">
<div class="container">
{% 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 %}
{% if (boardinfo?.rootfs_type == "initramfs"): %}