summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-freifunk/luasrc/view/freifunk/adminindex.htm
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2019-02-17 16:43:29 +0200
committerGitHub <noreply@github.com>2019-02-17 16:43:29 +0200
commit55cd0c4c6b572f5b35244927a738c46b7dd711b8 (patch)
tree57a427db406f6e0358a0dd1a1afe93c3a4139782 /modules/luci-mod-freifunk/luasrc/view/freifunk/adminindex.htm
parent7f791e9cf428b9c5347a48b6f39e20bd7f7a24e7 (diff)
parent4654ba92c3999d84b08211f05d2ccb5ea9da731b (diff)
Merge pull request #2533 from freifunk-berlin/freifunk-repo
treewide: move freifunk-related packages to separate repo
Diffstat (limited to 'modules/luci-mod-freifunk/luasrc/view/freifunk/adminindex.htm')
-rw-r--r--modules/luci-mod-freifunk/luasrc/view/freifunk/adminindex.htm44
1 files changed, 0 insertions, 44 deletions
diff --git a/modules/luci-mod-freifunk/luasrc/view/freifunk/adminindex.htm b/modules/luci-mod-freifunk/luasrc/view/freifunk/adminindex.htm
deleted file mode 100644
index a3f079716c..0000000000
--- a/modules/luci-mod-freifunk/luasrc/view/freifunk/adminindex.htm
+++ /dev/null
@@ -1,44 +0,0 @@
-<%+header%>
-<%
-local uci = require "luci.model.uci".cursor()
-local nickname = uci:get("freifunk", "contact", "nickname") or ""
-local name = uci:get("freifunk", "contact", "name") or ""
-local mail = uci:get("freifunk", "contact", "mail") or ""
-local contacturl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "contact")
-local hostname = uci:get_first ("system", "system", "hostname")
-local latitude = uci:get_first ("system", "system", "latitude")
-local longitude = uci:get_first ("system", "system", "longitude")
-local location = uci:get_first ("system", "system", "location")
-local basicsurl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "freifunk", "basics")
-%>
-
-<h2><%:Freifunk Overview%></h2>
-
-<%:These pages will assist you in setting up your router for Freifunk or similar wireless community networks.%>
-<p />
-
-<% if not (hostname and latitude and longitude and location) then%>
-<div class="error">
- <%:Basic settings are incomplete. Please go to%> <a href='<%=basicsurl%>'><%:Basic settings%></a> <%:and fill out all required fields.%>
-</div>
-<%end%>
-<p />
-
-<% if not (nickname and name and mail) then%>
-<div class="error">
- <%:Contact information is incomplete. Please go to%> <a href='<%=contacturl%>'><%:Contact%></a> <%:and fill out all required fields.%>
- <p />
-</div>
-<%end%>
-
-<% uci:foreach("wireless", "wifi-device", function(section)
- local device = section[".name"]
- local url = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "network", "wireless")
- if section.diversity ~= "0" and section.disabled ~= "1" and section.type ~= "mac80211" then
- print('<div class="error">' .. translate("Diversity is enabled for device") .. ' <b>' .. section[".name"] .. '</b>. '
- .. translate("Go to") .. ' <a href="' .. url .. '">' .. translate("wireless settings") .. '</a> ' ..
- translate("to disable it.") .. '</div><p />')
- end
-end) %>
-
-<%+footer%>