From 1c36cccd1fcc3a56d37eb6ced61e07022e3bbdc9 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:54:51 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- snort-details-html.lsp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/snort-details-html.lsp b/snort-details-html.lsp index b9f8b2a..43291b9 100644 --- a/snort-details-html.lsp +++ b/snort-details-html.lsp @@ -4,22 +4,21 @@ html = require("acf.html") <% viewlibrary.dispatch_component("status") %> -

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

-
+

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

<% if #data.value == 0 then - io.write("No alerts found") + io.write("

No alerts found

") else for i,priority in ipairs(data.value) do %>

<%= html.html_escape(priority.name) %>

<% for cls in pairs(priority.value) do %>

<%= html.html_escape(cls) %>

<% for id,alert in pairs(priority.value[cls]) do %> -

<%= html.html_escape(alert.value[1]) %>
+

<%= html.html_escape(alert.value[1]) %>
<% for j=2, table.maxn(alert.value) do %> - <%= html.html_escape(alert.value[j]) %>
+ <%= html.html_escape(alert.value[j]) %>
<% end %> - (This alarm is repeated <%= html.html_escape(alert.count) %> times) + (This alarm is repeated <%= html.html_escape(alert.count) %> times) <% if (table.maxn(alert.url) ~= 0) then %> ( URL's: <% for k,url in ipairs(alert.url) do %> @@ -32,4 +31,3 @@ else <% end %> <% end %> <% end %> -

-- cgit v1.2.3