diff options
author | Sven Roederer <freifunk@it-solutions.geroedel.de> | 2019-02-03 14:13:35 +0100 |
---|---|---|
committer | Sven Roederer <freifunk@it-solutions.geroedel.de> | 2019-02-13 21:23:34 +0100 |
commit | 4654ba92c3999d84b08211f05d2ccb5ea9da731b (patch) | |
tree | 06cedf8e8badc0ce584d8bd5e97fab7476c81549 /modules/luci-mod-freifunk/luasrc/view/freifunk/index.htm | |
parent | eda8f02dac3caa4d0f52cd1e860d7a392c295df3 (diff) |
treewide: move freifunk-related packages to separate repo
Even Freifunk was one of the major factory to create the LuCI-system, it's
now only a very small part of LuCI. LuCI has become a much bigger thing
and it seems that it's time to move the packages only relating to Freifunk
into it's own feed.
On the mailinglist it was discussed [1] and a repo below the general
Freifunk team on github was created.
This commit removes all packages that will be hosted in the new repo [2]
1 - http://lists.freifunk.net/pipermail/wlannews-freifunk.net/2019-February/004818.html
2 - https://github.com/freifunk/openwrt-packages
Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
Diffstat (limited to 'modules/luci-mod-freifunk/luasrc/view/freifunk/index.htm')
-rw-r--r-- | modules/luci-mod-freifunk/luasrc/view/freifunk/index.htm | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/modules/luci-mod-freifunk/luasrc/view/freifunk/index.htm b/modules/luci-mod-freifunk/luasrc/view/freifunk/index.htm deleted file mode 100644 index 3affc73fb9..0000000000 --- a/modules/luci-mod-freifunk/luasrc/view/freifunk/index.htm +++ /dev/null @@ -1,76 +0,0 @@ -<%# - Copyright 2008 Steven Barth <steven@midlink.org> - Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> - Licensed to the public under the Apache License 2.0. --%> - -<%+header%> -<% -local uci = require "luci.model.uci".cursor() -local tpl = require "luci.template" -local fs = require "nixio.fs" - -local community = uci:get("freifunk", "community", "name") or "Freifunk" -local DefaultText = uci:get("freifunk", "community", "DefaultText") or "" -local nickname = uci:get("freifunk", "contact", "nickname") or "No Nickname set" - -local co = "profile_" .. community ---local community = uci:get_first(co, "community", "name") or "Freifunk" -local url = uci:get_first(co, "community", "homepage") or "http://www.freifunk.net" - - -local usertext = fs.readfile("/www/luci-static/index_user.html") - -if DefaultText ~= "disabled" then - - defaulttext = '<h2><a id="content" name="content">'.. - (translate("Hello and welcome in the network of")).. - ' '.. - (community or "Freifunk Deutschland").. - '!</a></h2><p>'.. - translate("We are an initiative to establish a free, independent and open wireless mesh network.").. - '<br />'.. - translate("This is the access point").. - ' '.. - luci.sys.hostname().. - '. '.. - translate("It is operated by").. - ' <a href="'.. - luci.dispatcher.build_url("freifunk", "contact").. - '">'.. - (nickname or translate("Please set your contact information")).. - '</a>.</p><p>'.. - translate("You can find further information about the global Freifunk initiative at").. - ' <a href="http://freifunk.net">Freifunk.net</a>.<br />'.. - translate("If you are interested in our project then contact the local community").. - ' <a href="'..url..'">'..community..'</a>.</p><p><strong>'.. - translate("Notice").. - '</strong>: '.. - translate("Internet access depends on technical and organisational conditions and may or may not work for you.").. - '</p>' -end -%> - -<%=defaulttext%> -<%=usertext%> - -<% --- add custom widgets from view/freifunk/widgets -local widgets = {} -local dir = "/usr/lib/lua/luci/view/freifunk/widgets" - -uci:foreach("freifunk-widgets", "widget", - function(s) - if s.enabled == "1" then - table.insert(widgets, s) - end - end) - -for k, v in ipairs(widgets) do - if v['template'] and fs.access(dir .. "/" .. v['template'] .. "/main.htm") then - tpl.render("freifunk/widgets/" .. v['template'] .. "/main", { data = v }) - end -end - -%> -<%+footer%> |