summaryrefslogtreecommitdiffhomepage
path: root/modules/freifunk/luasrc
diff options
context:
space:
mode:
authorManuel Munz <freifunk@somakoma.de>2011-01-27 13:52:37 +0000
committerManuel Munz <freifunk@somakoma.de>2011-01-27 13:52:37 +0000
commit3813d639debd6c73f46590a29215c2ccd079843e (patch)
treedcca972f006d2cd4e9685e1e5ef2155c311bca6b /modules/freifunk/luasrc
parent01ad52f27a4887f9548ae7c2d2a9afe7cf6ee5f4 (diff)
applications/ffwizard: Do not disable diversity because we don't know which antenna is connected. Instead show a warning on admin/freifunk/adminindex when diversity is enabled and tell the user to change that.
Diffstat (limited to 'modules/freifunk/luasrc')
-rw-r--r--modules/freifunk/luasrc/view/freifunk/adminindex.htm11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/freifunk/luasrc/view/freifunk/adminindex.htm b/modules/freifunk/luasrc/view/freifunk/adminindex.htm
index d2bf0b7ea..57f6bddba 100644
--- a/modules/freifunk/luasrc/view/freifunk/adminindex.htm
+++ b/modules/freifunk/luasrc/view/freifunk/adminindex.htm
@@ -26,8 +26,17 @@ local basicsurl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "fr
<% if not (contact.nickname and contact.name and contact.mail) then%>
<div class="error">
<%:Contact information missing. Please go to this page and fill all required fields: %>
- <a href='<%=contacturl%>'><%:Contact%></a>
+ <a href='<%=contacturl%>'><%:Contact%></a><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" then
+ print('<div class="error">Diversity is enabled for device <b>' .. device .. '</b>. Go to <a href="' .. url .. '">wireless settings</a> to change that.</div><p />')
+ end
+end) %>
+
+
<%+footer%>