X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Ffreifunk%2Fluasrc%2Fview%2Ffreifunk%2Findex.htm;h=d93dcd8f455e3c1600f74c26677b458476087a58;hp=7fa2b4e4b0c0345f1794103c2f65443c17dd236f;hb=e8a9cad684d875a2f2c6dcb94149409049d42492;hpb=211c6394a0d145d3215893b827241723bb358a13 diff --git a/modules/freifunk/luasrc/view/freifunk/index.htm b/modules/freifunk/luasrc/view/freifunk/index.htm index 7fa2b4e4b..d93dcd8f4 100644 --- a/modules/freifunk/luasrc/view/freifunk/index.htm +++ b/modules/freifunk/luasrc/view/freifunk/index.htm @@ -1,10 +1,58 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> <%+header%> -<% local ff = luci.model.uci.get_all("freifunk") %> -

<%:hellonet%> <%=ff.community.name%>!

-

<%:public1%>
-<%:public2%><%=luci.sys.hostname()%>. <%:public3%> -<%=ff.contact.nickname%>.

-

<%:public4%> Freifunk.net.
-<%:public5%> <%=ff.community.name%>.

-

<%:note%>: <%:public6%>

-<%+footer%> \ No newline at end of file +<% +local ff = luci.model.uci.cursor():get_all("freifunk") +require("luci.fs") +local usertext = luci.fs.readfile("/www/luci-static/index_user.html") + +if (ff.community.DefaultText or "") ~= "disabled" then + + defaulttext = '

'.. + (translate("Hello and welcome in the network of")).. + ' '.. + (ff.community.name or "Freifunk Deutschland").. + '!

'.. + translate("We are an initiative to establish a free, independent and open wireless mesh network.").. + '
'.. + translate("This is the access point").. + ' '.. + luci.sys.hostname().. + '. '.. + translate("It is operated by").. + ' '.. + (ff.contact.nickname or "Anonymous").. + '.

'.. + translate("You can find further information about the global Freifunk initiative at").. + ' Freifunk.net.
'.. + translate("If you are interested in our project then contact the local community").. + ' '.. + (ff.community.name or "Freifunk").. + '.

'.. + translate("Notice").. + ': '.. + translate("Internet access depends on technical and organisational conditions and may or may not work for you.").. + '

' +end +%> + +<%=defaulttext%> +<%=usertext%> + +<%+footer%>