d93dcd8f455e3c1600f74c26677b458476087a58
[project/luci.git] / modules / freifunk / luasrc / view / freifunk / index.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 <%
17 local ff = luci.model.uci.cursor():get_all("freifunk")
18 require("luci.fs")
19 local usertext = luci.fs.readfile("/www/luci-static/index_user.html")
20
21 if (ff.community.DefaultText or "") ~= "disabled" then
22
23 defaulttext = '<h2><a id="content" name="content">'..
24 (translate("Hello and welcome in the network of"))..
25 ' '..
26 (ff.community.name or "Freifunk Deutschland")..
27 '!</a></h2><p>'..
28 translate("We are an initiative to establish a free, independent and open wireless mesh network.")..
29 '<br />'..
30 translate("This is the access point")..
31 ' '..
32 luci.sys.hostname()..
33 '. '..
34 translate("It is operated by")..
35 '<a href="'..
36 luci.dispatcher.build_url("freifunk", "index", "contact")..
37 '"> '..
38 (ff.contact.nickname or "Anonymous")..
39 '</a>.</p><p>'..
40 translate("You can find further information about the global Freifunk initiative at")..
41 ' <a href="http://freifunk.net">Freifunk.net</a>.<br />'..
42 translate("If you are interested in our project then contact the local community")..
43 ' <a href="'..
44 (ff.community.homepage or "http//freifunk.net")..
45 '">'..
46 (ff.community.name or "Freifunk")..
47 '</a>.</p><p><strong>'..
48 translate("Notice")..
49 '</strong>: '..
50 translate("Internet access depends on technical and organisational conditions and may or may not work for you.")..
51 '</p>'
52 end
53 %>
54
55 <%=defaulttext%>
56 <%=usertext%>
57
58 <%+footer%>