summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-advanced-reboot/luasrc/view/advanced_reboot/applyreboot.htm
blob: 94ac36bd7013e4a28fdf525a723a96771ddb2ae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<%#
 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?v=git-19.271.68204-f8775ee" />
		<script type="text/javascript" src="<%=resource%>/xhr.js?v=git-19.271.68204-f8775ee"></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>