summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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%>