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-olsr/luasrc/view/status-olsr/hna.htm | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'applications/luci-app-olsr/luasrc/view/status-olsr/hna.htm') diff --git a/applications/luci-app-olsr/luasrc/view/status-olsr/hna.htm b/applications/luci-app-olsr/luasrc/view/status-olsr/hna.htm index 5ea7b74e4d..2dc4ce1730 100644 --- a/applications/luci-app-olsr/luasrc/view/status-olsr/hna.htm +++ b/applications/luci-app-olsr/luasrc/view/status-olsr/hna.htm @@ -41,7 +41,7 @@ XHR.poll(10, '<%=REQUEST_URI%>', { status: 1 }, { var hna = info[idx]; var linkgw = '' - s += '' + s += '
' if (hna.proto == '6') { linkgw = '' + hna.gateway + '' } else { @@ -61,11 +61,11 @@ XHR.poll(10, '<%=REQUEST_URI%>', { status: 1 }, } s += String.format( - '%s' + - '%s' + - '%s', hna.destination + '/' + hna.genmask, linkgw + hostname, validity + '
%s
' + + '
%s
' + + '
%s
', hna.destination + '/' + hna.genmask, linkgw + hostname, validity ) - s += '' + s += '
' } hnadiv.innerHTML = s; } @@ -79,21 +79,21 @@ XHR.poll(10, '<%=REQUEST_URI%>', { status: 1 },
<%:Overview of currently active OLSR host net announcements%> - - - - - - - +
+
+
+
<%:Announced network%>
+
<%:OLSR gateway%>
+
<%:Validity Time%>
+
-
- + +
<% for k, route in ipairs(hna) do %> -
- - + <% if hna[k].validityTime then validity = hna[k].validityTime .. 's' else validity = '-' end %> - - +
<%=validity%>
+ <% i = ((i % 2) + 1) end %> - -
<%:Announced network%><%:OLSR gateway%><%:Validity Time%>
<%=hna[k].destination%>/<%=hna[k].genmask%> +
+
<%=hna[k].destination%>/<%=hna[k].genmask%>
+
<% if hna[k].proto == '6' then %> <%=hna[k].gateway%> <% else %> @@ -102,20 +102,20 @@ XHR.poll(10, '<%=REQUEST_URI%>', { status: 1 }, <% if hna[k].hostname then %> / <%=hna[k].hostname%> <% end %> -
<%=validity%>
+ +
<%+status-olsr/common_js%> -- cgit v1.2.3