Add luci.util.append
[project/luci.git] / modules / admin-mini / luasrc / view / mini / uci_apply.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 <div>
17 <a href="<%=luci.http.formvalue("redir")%>">&lt;&lt; <%:back%></a>
18 <br />
19 <br />
20 </div>
21 <h2><a id="content" name="content"><%:config%></a></h2>
22 <p><%:uci_applied%>:</p>
23 <code><%=(changes or "-")%>
24
25 <%
26 local fp = reload()
27 local line = fp:read()
28 while line do 
29         write(line.."\n")
30         line = fp:read()
31 end
32 fp:close()
33 %></code>
34 <div>
35 <a href="<%=luci.http.formvalue("redir")%>">&lt;&lt; <%:back%></a>
36 <br />
37 <br />
38 </div>
39 <%+footer%>