diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-02-03 21:54:51 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-02-03 21:54:51 +0000 |
commit | 1c36cccd1fcc3a56d37eb6ced61e07022e3bbdc9 (patch) | |
tree | 38f6864c7dc99d47e38c58e8ce28f2f0cfacbe1c | |
parent | b1f9df6888bed9294a8daa90f13395d76e8e8d19 (diff) | |
download | acf-snort-1c36cccd1fcc3a56d37eb6ced61e07022e3bbdc9.tar.bz2 acf-snort-1c36cccd1fcc3a56d37eb6ced61e07022e3bbdc9.tar.xz |
Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags
-rw-r--r-- | snort-details-html.lsp | 12 |
1 files 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") %> -<H2><%= html.html_escape(data.label) %></H2> -<DL> +<h2><%= html.html_escape(data.label) %></h2> <% if #data.value == 0 then - io.write("No alerts found") + io.write("<p>No alerts found</p>") else for i,priority in ipairs(data.value) do %> <h2><%= html.html_escape(priority.name) %></h2> <% for cls in pairs(priority.value) do %> <h3><%= html.html_escape(cls) %></h3> <% for id,alert in pairs(priority.value[cls]) do %> - <p><B><%= html.html_escape(alert.value[1]) %></B><BR> + <p><b><%= html.html_escape(alert.value[1]) %></b><br/> <% for j=2, table.maxn(alert.value) do %> - <%= html.html_escape(alert.value[j]) %><BR> + <%= html.html_escape(alert.value[j]) %><br/> <% end %> - <I>(This alarm is repeated <B><%= html.html_escape(alert.count) %></B> times)</I> + <i>(This alarm is repeated <b><%= html.html_escape(alert.count) %></b> times)</i> <% 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 %> -</DL> |