luci-mod-admin-full: fix wifi overview display when no networks are defined

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2018-07-26 19:15:22 +02:00
parent 5c07c6fff3
commit 80706cbafb

View file

@ -70,7 +70,7 @@ local tpl_radio = tpl.Template(nil, [[
<!-- physical device --> <!-- physical device -->
<div class="tr cbi-rowstyle-2"> <div class="tr cbi-rowstyle-2">
<div class="td col-2 center middle"> <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>
<div class="td col-7 left middle"> <div class="td col-7 left middle">
<big><strong><%=hw%></strong></big><br /> <big><strong><%=hw%></strong></big><br />
@ -115,8 +115,8 @@ local tpl_radio = tpl.Template(nil, [[
</div> </div>
<% end %> <% end %>
<% else %> <% else %>
<div class="tr cbi-rowstyle-2"> <div class="tr placeholder">
<div class="td left"> <div class="td">
<em><%:No network configured on this device%></em> <em><%:No network configured on this device%></em>
</div> </div>
</div> </div>