summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-10-07 11:41:42 +0200
committerJo-Philipp Wich <jo@mein.io>2019-10-07 11:53:39 +0200
commit90c52a1782ae7727c0a430dcec64d9c1b072e452 (patch)
treed83435e65bc5a1142837db4538eaaafc449865cf /modules/luci-mod-system
parentb637cf67502735d6ab9ee8a6deb1d1f323a2b15b (diff)
luci-app-advanced-reboot: import applyreboot template from luci-mod-system
Since the advanced-reboot app is the sole remaining user of the applyreboot template, import it into this package to avoid the need for shipping it with the default installation. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system')
-rw-r--r--modules/luci-mod-system/luasrc/view/admin_system/applyreboot.htm53
1 files changed, 0 insertions, 53 deletions
diff --git a/modules/luci-mod-system/luasrc/view/admin_system/applyreboot.htm b/modules/luci-mod-system/luasrc/view/admin_system/applyreboot.htm
deleted file mode 100644
index e235bd4679..0000000000
--- a/modules/luci-mod-system/luasrc/view/admin_system/applyreboot.htm
+++ /dev/null
@@ -1,53 +0,0 @@
-<%#
- Copyright 2008 Steven Barth <steven@midlink.org>
- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
- Licensed to the public under the Apache License 2.0.
--%>
-
-<html>
- <head>
- <title><%=luci.sys.hostname()%> - <%= title or translate("Rebooting...") %></title>
- <link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
- <script type="text/javascript" src="<%=resource%>/xhr.js"></script>
- <script type="text/javascript">//<![CDATA[
- var interval = window.setInterval(function() {
- var img = new Image();
- var target = ('https:' == document.location.protocol ? 'https://' : 'http://') + <%=addr and "'%s'" % addr or "window.location.host"%>;
-
- img.onload = function() {
- window.clearInterval(interval);
- window.location.replace(target);
- };
-
- img.src = target + '<%=resource%>/icons/loading.gif?' + Math.random();
-
- }, 5000);
- //]]></script>
- </head>
- <body>
- <header>
- <div class="fill">
- <div class="container">
- <p class="brand"><%=luci.sys.hostname() or "?"%></p>
- </div>
- </div>
- </header>
- &#160;
- <div class="main">
- <div id="maincontainer">
- <div id="maincontent" class="container">
- <h2 name="content" id="applyreboot-container" ><%:System%> - <%= title or translate("Rebooting...") %></h2>
- <div class="cbi-section" id="applyreboot-section">
- <div>
- <%= msg or translate("Changes applied.") %>
- </div>
- <div>
- <img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" />
- <%:Waiting for changes to be applied...%>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
-</html> \ No newline at end of file