From 4f0dfb6ab05a42d5bedd9cc92512d783223d51cb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 13 Jul 2018 09:37:53 +0200 Subject: luci-mod-admin-full: tweak interface and wireless overview markup Signed-off-by: Jo-Philipp Wich --- .../luasrc/model/cbi/admin_network/network.lua | 31 ++++++----- .../model/cbi/admin_network/wifi_overview.lua | 64 ++++++++++++---------- 2 files changed, 51 insertions(+), 44 deletions(-) diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua index 08494644b3..799386d29c 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua @@ -38,31 +38,34 @@ local tpl_networks = tpl.Template(nil, [[ -
+
<%:Collecting data...%>
- /> +
+ /> - <% if disabled then %> - - /> - <% else %> - - /> - <% end %> + <% if disabled then %> + + /> + <% else %> + + /> + <% end %> - '" title="<%:Edit this interface%>" value="<%:Edit%>" id="<%=net[1]%>-ifc-edit"<%=ifattr(dynamic, "disabled", "disabled")%> /> + '" title="<%:Edit this interface%>" value="<%:Edit%>" id="<%=net[1]%>-ifc-edit"<%=ifattr(dynamic, "disabled", "disabled")%> /> - - /> + + /> +
<% end %> - - '" /> +
+ '" /> +
]]) local _, net diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_overview.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_overview.lua index 8e0e3b995f..dda31fb1ed 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_overview.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi_overview.lua @@ -69,26 +69,28 @@ local tpl_radio = tpl.Template(nil, [[
-
+
<%=dev:name()%>
-
+
<%=hw%>
-
- - -
- - - -
-
- - - -
+
+
+ + +
+ + + +
+
+ + + +
+
@@ -97,25 +99,27 @@ local tpl_radio = tpl.Template(nil, [[ <% if #wnets > 0 then %> <% for i, net in ipairs(wnets) do local disabled = (dev:get("disabled") == "1" or net:get("disabled") == "1") %>
-
+
.png" /> 0%
-
"> +
"> <%= disabled and translate("Wireless is disabled") or translate("Collecting data...") %>
-
- <% if disabled then %> - - - <% else %> - - - <% end %> - - - - - +
+
+ <% if disabled then %> + + + <% else %> + + + <% end %> + + + + + +
<% end %> -- cgit v1.2.3