luci-mod-admin-full: fix wifi overview display when no networks are defined
authorJo-Philipp Wich <jo@mein.io>
Thu, 26 Jul 2018 17:15:22 +0000 (19:15 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 26 Jul 2018 17:15:42 +0000 (19:15 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_overview.lua

index 32bf1965f3bc355cace89fb3eaf0fe8526a38244..ad20f09187c4bb480038c3248e48144346aa9c92 100644 (file)
@@ -70,7 +70,7 @@ local tpl_radio = tpl.Template(nil, [[
                        <!-- physical device -->
                        <div class="tr cbi-rowstyle-2">
                                <div class="td col-2 center middle">
-                                       <span class="ifacebadge"><img src="<%=resource%>/icons/wifi_toggled.png" id="<%=dev:name()%>-iw-upstate" /> <%=dev:name()%></span>
+                                       <span class="ifacebadge"><img src="<%=resource%>/icons/wifi_disabled.png" id="<%=dev:name()%>-iw-upstate" /> <%=dev:name()%></span>
                                </div>
                                <div class="td col-7 left middle">
                                        <big><strong><%=hw%></strong></big><br />
@@ -115,8 +115,8 @@ local tpl_radio = tpl.Template(nil, [[
                                </div>
                                <% end %>
                        <% else %>
-                               <div class="tr cbi-rowstyle-2">
-                                       <div class="td left">
+                               <div class="tr placeholder">
+                                       <div class="td">
                                                <em><%:No network configured on this device%></em>
                                        </div>
                                </div>