luci-app-advanced-reboot: bugfix: luci error on reboot, logger errors
[project/luci.git] / applications / luci-app-advanced-reboot / luasrc / view / advanced_reboot / applyreboot.htm
1 <%#
2 Copyright 2008 Steven Barth <steven@midlink.org>
3 Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
4 Licensed to the public under the Apache License 2.0.
5 -%>
6
7 <html>
8 <head>
9 <title><%=luci.sys.hostname()%> - <%= title or translate("Rebooting...") %></title>
10 <link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css?v=git-19.271.68204-f8775ee" />
11 <script type="text/javascript" src="<%=resource%>/xhr.js?v=git-19.271.68204-f8775ee"></script>
12 <script type="text/javascript">//<![CDATA[
13 var interval = window.setInterval(function() {
14 var img = new Image();
15 var target = ('https:' == document.location.protocol ? 'https://' : 'http://') + <%=addr and "'%s'" % addr or "window.location.host"%>;
16
17 img.onload = function() {
18 window.clearInterval(interval);
19 window.location.replace(target);
20 };
21
22 img.src = target + '<%=resource%>/icons/loading.gif?' + Math.random();
23
24 }, 5000);
25 //]]></script>
26 </head>
27 <body>
28 <header>
29 <div class="fill">
30 <div class="container">
31 <p class="brand"><%=luci.sys.hostname() or "?"%></p>
32 </div>
33 </div>
34 </header>
35 &#160;
36 <div class="main">
37 <div id="maincontainer">
38 <div id="maincontent" class="container">
39 <h2 name="content" id="applyreboot-container" ><%:System%> - <%= title or translate("Rebooting...") %></h2>
40 <div class="cbi-section" id="applyreboot-section">
41 <div>
42 <%= msg or translate("Changes applied.") %>
43 </div>
44 <div>
45 <img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" />
46 <%:Waiting for changes to be applied...%>
47 </div>
48 </div>
49 </div>
50 </div>
51 </div>
52 </body>
53 </html>