From: Jo-Philipp Wich Date: Fri, 13 Jul 2018 07:37:53 +0000 (+0200) Subject: luci-mod-admin-full: tweak interface and wireless overview markup X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f0dfb6ab05a42d5bedd9cc92512d783223d51cb;p=oweals%2Fluci.git luci-mod-admin-full: tweak interface and wireless overview markup Signed-off-by: Jo-Philipp Wich --- 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 08494644b..799386d29 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 8e0e3b995..dda31fb1e 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 %>