From feb8d823e59f8c9bf1bdadce6c7fc2a88966f12e Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Wed, 7 Oct 2020 14:42:39 +0200 Subject: luci-app-advanced-reboot: convert to client side Rework the advanced-reboot app to client side implementation. Change devices file to json type. Signed-off-by: Ansuel Smith Tested-by: Stefan Lippers-Hollmann --- .../view/advanced_reboot/advanced_reboot.htm | 100 --------------------- 1 file changed, 100 deletions(-) delete mode 100644 applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm (limited to 'applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm') 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 deleted file mode 100644 index a28418cc5f..0000000000 --- a/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/advanced_reboot.htm +++ /dev/null @@ -1,100 +0,0 @@ -<%# - Copyright 2008 Steven Barth - Copyright 2008-2015 Jo-Philipp Wich - Copyright 2017-2020 Stan Grishin - Licensed to the public under the Apache License 2.0. --%> - -<%+header%> - -

<%:Advanced Reboot%>

-
- -<%- local c = require("luci.model.uci").cursor():changes(); if c and next(c) then -%> -

<%:Warning: There are unsaved changes that will get lost on reboot!%>

-<%- end -%> - -<%- if errorMessage and errorMessage ~= "" then -%> -

<%:ERROR: %><%=errorMessage%>

-<%- end -%> - -<%- if device_name then -%> -
- <%=device_name%><%: Partitions%> -
-
-
<%:Partition%>
-
<%:Status%>
-
<%:Firmware%>
-
<%:Reboot%>
-
-
-
- <%=string.format("%X", bev1p1)%> -
-
- <%- if bev1p1 == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%> -
-
- <%=p1_os%> -
-
- <%- if bev1p1 == current_partition then -%> -
- - -
- <%- else -%> -
- - -
- <%- end -%> -
-
-
-
- <%=string.format("%X", bev1p2)%> -
-
- <%- if bev1p2 == current_partition then -%><%:Current%><%- else -%><%:Alternative%><%- end -%> -
-
- <%=p2_os%> -
-
- <%- if bev1p2 == current_partition then -%> -
- - -
- <%- else -%> -
- - -
- <%- end -%> -
-
-
-
-<%- else -%> - <%- if rom_board_name then -%> -

<%=pcdata(translatef("Warning: Device (%s) is unknown or isn't a dual-partition device!", rom_board_name))%>

- <%- else -%> -

<%=pcdata(translatef("Warning: Unable to obtain device information!"))%>

- <%- end -%> -<%- end -%> - -
- -<%- if nixio.fs.access("/sbin/poweroff") then -%> -
- - -
-<%- else -%> -

<%:Warning: This system does not support powering off!%>

-<%- end -%> - -<%+footer%> -- cgit v1.2.3