summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-bootstrap/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-05-12 09:32:02 +0200
committerJo-Philipp Wich <jo@mein.io>2022-05-16 11:47:00 +0200
commit56fab648caa78422aac47ab8cec168e8a0999316 (patch)
tree64020a0df46834b41e1024087961dc2ecf020cf0 /themes/luci-theme-bootstrap/luasrc/view
parentcfc8e2bf8d88d09910a0e36a0e5279c0fa18af97 (diff)
luci-theme-bootstrap: restore initramfs warning
Restore accidentally removed the initramfs boot warning banner. Ref: https://github.com/openwrt/luci/commit/8055acc9be89f0bed31b6692ad08e6196611d478#commitcomment-73447330 Fixes: 8055acc9be ("luci-theme-bootstrap: overhaul styles") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-bootstrap/luasrc/view')
-rw-r--r--themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm10
1 files changed, 10 insertions, 0 deletions
diff --git a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
index 0a93165f57..37d18a2f07 100644
--- a/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
+++ b/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm
@@ -74,6 +74,16 @@
</div>
<%- end -%>
+ <%- if boardinfo.rootfs_type == "initramfs" then -%>
+ <div class="alert-message warning">
+ <h4><%:System running in recovery (initramfs) mode.%></h4>
+ <p><%:No changes to settings will be stored and are lost after rebooting. This mode should only be used to install a firmware upgrade%></p>
+ <% if disp.lookup("admin/system/flash") then %>
+ <div class="right"><a class="btn" href="<%=url("admin/system/flash")%>"><%:Go to firmware upgrade...%></a></div>
+ <% end %>
+ </div>
+ <%- end -%>
+
<noscript>
<div class="alert-message warning">
<h4><%:JavaScript required!%></h4>