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.
9 <title><%=luci.sys.hostname()%> - <%= title or translate("Rebooting...") %></title>
10 <link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
11 <script type="text/javascript" src="<%=resource%>/xhr.js"></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"%>;
17 img.onload = function() {
18 window.clearInterval(interval);
19 window.location.replace(target);
22 img.src = target + '<%=resource%>/icons/loading.gif?' + Math.random();
30 <div class="container">
31 <p class="brand"><%=luci.sys.hostname() or "?"%></p>
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">
42 <%= msg or translate("Changes applied.") %>
45 <img src="<%=resource%>/icons/loading.gif" alt="<%:Loading%>" style="vertical-align:middle" />
46 <%:Waiting for changes to be applied...%>