diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2017-12-26 19:36:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-26 19:36:40 +0200 |
commit | 902b292609014e7683df5ecb587af3344f64e61e (patch) | |
tree | 674ddd6470c81fdd1f1086ecfad4777b6a744dc8 /applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot | |
parent | a2a1c357869a06bb216497e4fdd4e66c85e9995b (diff) | |
parent | e045f4d8a49af832415500618f51efd4886c1488 (diff) |
Merge pull request #1486 from stangri/luci-app-advanced-reboot
luci-app-advanced-reboot: 2 new routers + error reporting
Diffstat (limited to 'applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot')
-rw-r--r-- | applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm | 8 |
1 files changed, 6 insertions, 2 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 206d250543..0629c84b36 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 @@ -14,6 +14,10 @@ <p class="alert-message warning"><%:Warning: There are unsaved changes that will get lost on reboot!%></p> <%- end -%> +<%- if errorMessage and errorMessage ~= "" then -%> + <p class="alert-message warning"><%:ERROR: %><%=errorMessage%></p> +<%- end -%> + <%- if device_name then -%> <fieldset class="cbi-section"> <legend><%=device_name%><%: Partitions%></legend> @@ -26,7 +30,7 @@ </tr> <tr class="cbi-section-table-row"> <td> - <%=boot_envvar1_partition_one%> + <%=string.format("%X", boot_envvar1_partition_one)%> </td> <td> <%- if boot_envvar1_partition_one == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%> @@ -50,7 +54,7 @@ </tr> <tr class="cbi-section-table-row"> <td> - <%=boot_envvar1_partition_two%> + <%=string.format("%X", boot_envvar1_partition_two)%> </td> <td> <%- if boot_envvar1_partition_two == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%> |