summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-advanced-reboot/luasrc/view
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2019-11-15 16:41:43 -0700
committerStan Grishin <stangri@melmac.net>2019-11-15 16:41:43 -0700
commit1235e4f0f96f53177c5604cf667246c3e27efa48 (patch)
treefaa928bbfd1b9b76cdba8036bca91e007d4083c0 /applications/luci-app-advanced-reboot/luasrc/view
parent9740604eef38335b180a8e38aa88fc5bc8343bd7 (diff)
luci-app-advanced-reboot: show OpenWrt info on compatible NAND routers
Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'applications/luci-app-advanced-reboot/luasrc/view')
-rw-r--r--applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm128
-rw-r--r--applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm8
2 files changed, 68 insertions, 68 deletions
diff --git a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm
index 5c14f52ff8..f3d8338c47 100644
--- a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm
+++ b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm
@@ -20,70 +20,70 @@
<%- if device_name then -%>
<fieldset class="cbi-section">
- <legend><%=device_name%><%: Partitions%></legend>
- <div class="table cbi-section-table" id="partitions">
- <div class="tr cbi-section-table-titles">
- <div class="th cbi-section-table-cell"><%:Partition%></div>
- <div class="th cbi-section-table-cell"><%:Status%></div>
- <div class="th cbi-section-table-cell"><%:Firmware/OS (Kernel)%></div>
- <div class="th cbi-section-table-cell"><%:Action%></div>
- </div>
- <div class="tr cbi-section-table-row">
- <div class="td">
- <%=string.format("%X", boot_envvar1_partition_one)%>
- </div>
- <div class="td">
- <%- if boot_envvar1_partition_one == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%>
- </div>
- <div class="td">
- <%=partition_one_os%>
- </div>
- <div class="td">
- <%- if boot_envvar1_partition_one == current_partition then -%>
- <form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
- <input type="hidden" name="token" value="<%=token%>" />
- <input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
- </form>
- <%- else -%>
- <form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
- <input type="hidden" name="token" value="<%=token%>" />
- <input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
- </form>
- <%- end -%>
- </div>
- </div>
- <div class="tr cbi-section-table-row">
- <div class="td">
- <%=string.format("%X", boot_envvar1_partition_two)%>
- </div>
- <div class="td">
- <%- if boot_envvar1_partition_two == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%>
- </div>
- <div class="td">
- <%=partition_two_os%>
- </div>
- <div class="td">
- <%- if boot_envvar1_partition_two == current_partition then -%>
- <form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
- <input type="hidden" name="token" value="<%=token%>" />
- <input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
- </form>
- <%- else -%>
- <form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
- <input type="hidden" name="token" value="<%=token%>" />
- <input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
- </form>
- <%- end -%>
- </div>
- </div>
- </div>
+ <legend><%=device_name%><%: Partitions%></legend>
+ <div class="table cbi-section-table" id="partitions">
+ <div class="tr cbi-section-table-titles">
+ <div class="th cbi-section-table-cell"><%:Partition%></div>
+ <div class="th cbi-section-table-cell"><%:Status%></div>
+ <div class="th cbi-section-table-cell"><%:Firmware%></div>
+ <div class="th cbi-section-table-cell"><%:Reboot%></div>
+ </div>
+ <div class="tr cbi-section-table-row cbi-rowstyle-1">
+ <div class="td">
+ <%=string.format("%X", bev1p1)%>
+ </div>
+ <div class="td">
+ <%- if bev1p1 == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%>
+ </div>
+ <div class="td">
+ <%=p1_os%>
+ </div>
+ <div class="td">
+ <%- if bev1p1 == current_partition then -%>
+ <form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
+ <input type="hidden" name="token" value="<%=token%>" />
+ <input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
+ </form>
+ <%- else -%>
+ <form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
+ <input type="hidden" name="token" value="<%=token%>" />
+ <input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
+ </form>
+ <%- end -%>
+ </div>
+ </div>
+ <div class="tr cbi-section-table-row cbi-rowstyle-2">
+ <div class="td">
+ <%=string.format("%X", bev1p2)%>
+ </div>
+ <div class="td">
+ <%- if bev1p2 == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%>
+ </div>
+ <div class="td">
+ <%=p2_os%>
+ </div>
+ <div class="td">
+ <%- if bev1p2 == current_partition then -%>
+ <form method="post" action="<%=url('admin/system/advanced_reboot/reboot')%>">
+ <input type="hidden" name="token" value="<%=token%>" />
+ <input id="reboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to current partition%>" />
+ </form>
+ <%- else -%>
+ <form method="post" action="<%=url('admin/system/advanced_reboot/alternative_reboot')%>">
+ <input type="hidden" name="token" value="<%=token%>" />
+ <input id="altreboot-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Reboot to alternative partition...%>" />
+ </form>
+ <%- end -%>
+ </div>
+ </div>
+ </div>
</fieldset>
<%- else -%>
- <%- if rom_board_name then -%>
- <p class="alert-message warning"><%=pcdata(translatef("Warning: Device (%s) is unknown or isn't a dual-partition device!", rom_board_name))%></p>
- <%- else -%>
- <p class="alert-message warning"><%=pcdata(translatef("Warning: Unable to obtain device information!"))%></p>
- <%- end -%>
+ <%- if rom_board_name then -%>
+ <p class="alert-message warning"><%=pcdata(translatef("Warning: Device (%s) is unknown or isn't a dual-partition device!", rom_board_name))%></p>
+ <%- else -%>
+ <p class="alert-message warning"><%=pcdata(translatef("Warning: Unable to obtain device information!"))%></p>
+ <%- end -%>
<%- end -%>
<hr />
@@ -91,10 +91,10 @@
<%- if nixio.fs.access("/sbin/poweroff") then -%>
<form method="post" action="<%=url('admin/system/advanced_reboot/power_off')%>">
<input type="hidden" name="token" value="<%=token%>" />
- <input id="poweroff-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Perform power off...%>" />
+ <input id="poweroff-button" type="submit" class="cbi-button cbi-button-apply important" value="<%:Perform power off...%>" />
</form>
<%- else -%>
- <p class="alert-message warning"><%:Warning: This system does not support powering off!%></p>
+ <p class="alert-message warning"><%:Warning: This system does not support powering off!%></p>
<%- end -%>
<%+footer%>
diff --git a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm
index b15f16b0d5..db11020628 100644
--- a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm
+++ b/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/alternative_reboot.htm
@@ -10,10 +10,10 @@
<h2 name="content"><%:Reboot Device to an Alternative Partition%> - <%:Confirm%></h2>
<p>
<%_ WARNING: An alternative partition might have its own settings and completely different firmware.<br /><br />
- As your network configuration and WiFi SSID/password on alternative partition might be different,
- you might have to adjust your computer settings to be able to access your device once it reboots.<br /><br />
- Please also be aware that alternative partition firmware might not provide an easy way to switch active partition
- and boot back to the currently active partition.<br /><br />
+ As your network configuration and WiFi SSID/password on alternative partition might be different,
+ you might have to adjust your computer settings to be able to access your device once it reboots.<br /><br />
+ Please also be aware that alternative partition firmware might not provide an easy way to switch active partition
+ and boot back to the currently active partition.<br /><br />
Click "Proceed" below to reboot device to an alternative partition. %>
</p>