luci-theme-bootstrap: restore initramfs warning
Restore accidentally removed the initramfs boot warning banner.
Ref: 8055acc9be (commitcomment-73447330)
Fixes: 8055acc9be ("luci-theme-bootstrap: overhaul styles")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 56fab648caa78422aac47ab8cec168e8a0999316)
This commit is contained in:
parent
ef99568d88
commit
d8ecf48f20
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user