600da36fcb48951c73210138351f63324e9b7199
[project/luci.git] / modules / admin-mini / luasrc / view / mini / reboot.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15 <%+header%>
16 <h1><%:system%></h1>
17 <h2><%:reboot%></h2>
18 <p><%:a_s_reboot1%></p>
19 <%-
20 local c = require("luci.model.uci").changes()
21 if c and next(c) then
22 -%>
23         <p class="warning"><%:a_s_reboot_u%></p> 
24 <%-
25 end
26 if not reboot then 
27 -%>
28 <p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:a_s_reboot_do%></a></p>
29 <%- else -%>
30 <p><%:a_s_reboot_running%></p>
31 <script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script>
32 <%- end -%>
33 <%+footer%>