From 067d7dc9f708d5ebeda1072fb6dc82e960de0d81 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 28 May 2018 14:57:54 +0200 Subject: treewide: convert HTML tables to div Mostly convert HTML tables to div based markup to allow for easier styling in the future. Also change JS accessor code accordingly. Signed-off-by: Jo-Philipp Wich --- .../luci-app-noddos/luasrc/view/noddos/clients.htm | 76 +++++++++++----------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'applications/luci-app-noddos') diff --git a/applications/luci-app-noddos/luasrc/view/noddos/clients.htm b/applications/luci-app-noddos/luasrc/view/noddos/clients.htm index f2fb9312a..4caf3e04e 100644 --- a/applications/luci-app-noddos/luasrc/view/noddos/clients.htm +++ b/applications/luci-app-noddos/luasrc/view/noddos/clients.htm @@ -38,70 +38,70 @@
<%:Recognized Clients%>
- - - - - - - - - +
+
+
<%:Hostname%>
+
<%:IPv4%>
+
<%:MAC%>
+
<%:Manufacturer%>
+
<%:Model%>
+
<%:Class%>
+
<% for i,v in ipairs(devdump) do if v.DeviceProfileUuid ~= "" then %> -
- - - - - - - +
+
<%=v.Hostname%>
+
<%=v.Ipv4Address%>
+ +
<%=devicevalues[v.DeviceProfileUuid].Manufacturer%>
+
<%=devicevalues[v.DeviceProfileUuid].Model%>
+
<%=devicevalues[v.DeviceProfileUuid].ThingClass%>
+
<% style=false end end %> -
<%:Hostname%><%:IPv4%><%:MAC%><%:Manufacturer%><%:Model%><%:Class%>
<%=v.Hostname%><%=v.Ipv4Address%><%=v.MacAddress%><%=devicevalues[v.DeviceProfileUuid].Manufacturer%><%=devicevalues[v.DeviceProfileUuid].Model%><%=devicevalues[v.DeviceProfileUuid].ThingClass%>
+

<%:Unrecognized Clients%>
- - - - - - - - - - +
+
+
<%:Hostname%>
+
<%:IPv4%>
+
<%:MAC%>
+
<%:Manufacturer%>
+
<%:Model%>
+
<%:DhcpVendor%>
+
<%:DhcpHostname%>
+
<% for i,v in ipairs(devdump) do if v.DeviceProfileUuid == "" then %> -
- - - - - - - - +
+
<%=v.Hostname%>
+
<%=v.Ipv4Address%>
+ +
<%=v.SsdpManufacturer%>
+
<%=v.SsdpModelName%>
+
<%=v.DhcpVendor1%>
+
<%=v.DhcpHostname%>
+
<% style=false end end %> -
<%:Hostname%><%:IPv4%><%:MAC%><%:Manufacturer%><%:Model%><%:DhcpVendor%><%:DhcpHostname%>
<%=v.Hostname%><%=v.Ipv4Address%><%=v.MacAddress%><%=v.SsdpManufacturer%><%=v.SsdpModelName%><%=v.DhcpVendor1%><%=v.DhcpHostname%>
+
-- cgit v1.2.3