<%# Opennet Firmware Copyright 2017 Lars Kruse 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 -%> <%+header%> <% require("luci.i18n") %>

<%:Wireless Interface%>: <%= wifi_device_name %>

<%= html_display_message_list(on_hints, "info") %>

<%:Configured Mesh Wifi%>

<% for _, ssid in pairs(wifi_current_ssids) do %> <%= ssid %>
<% end %>

<%:Join Network: Wireless Scan%>

<% if #wifi_scan_result > 0 then %> <%- for _, peer in ipairs(wifi_scan_result) do %> <% -- use red / orange / green colors based on the signal strength if -83 > peer.signal then quality_style = "background-color:#F70D1A" elseif -77 > peer.signal then quality_style = "background-color:#F88017" else quality_style = "background-color:#00FF00" end %> <%- end -%>
<%:Signal%> <%:Name%>
<%= peer.signal %>
<% else %> <%= html_box(luci.i18n.translate("No wireless Opennet networks were found"), "info") %> <% end %>
<%+footer%>