From cc4fd41686f103acdc72c72a8e8295c3c169a28f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:32:09 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- ipsectools-details-html.lsp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'ipsectools-details-html.lsp') diff --git a/ipsectools-details-html.lsp b/ipsectools-details-html.lsp index b1df6a7..1e8bfe6 100644 --- a/ipsectools-details-html.lsp +++ b/ipsectools-details-html.lsp @@ -5,33 +5,31 @@ html = require("acf.html") <% viewlibrary.dispatch_component("status") %> -

<%= html.html_escape(data.label) %>

-
+

<%= html.html_escape(data.label) %>

<% if not data.value.show_isakmp or #data.value.show_isakmp.value == 0 then - io.write("No status details available") + io.write("

No status details available

") else for i,entry in pairs(data.value.show_isakmp.value) do if (type(entry) == "table") and (entry.Destination) and (entry.Destination.value) and (#entry.Destination.value > 0) then - io.write("

".. html.html_escape(entry.Destination.value) .. "

") - io.write("\n") + io.write(".png' width='16' height='16'> ".. html.html_escape(entry.Destination.value) .. "") + io.write("
\n") local tags = {"Created","Source","Destination", "St", "Phase2details"} for j,tag in pairs(tags) do - io.write("") + io.write("") end - io.write("
" .. - html.html_escape(entry[tag].label) .. ""..string.gsub(html.html_escape(entry[tag].value), "\n", "
")) + io.write("
" .. + html.html_escape(entry[tag].label) .. ""..string.gsub(html.html_escape(entry[tag].value), "\n", "
")) if (entry[tag].descr) and (#entry[tag].descr > 0) then io.write(" (".. html.html_escape(entry[tag].descr) .. ")") end - io.write("
") + io.write("") end end end --htmlviewfunctions.displayitem(data.value.ip_xfrm_policy) %> -
-- cgit v1.2.3