From 2eb2895972d0b37cbc271d8551bc4d263611b72d Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:23:07 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- clamav-details-html.lsp | 4 +--- clamav-listfiles-html.lsp | 44 +++++++++++++++++++++++++++++++------------- 2 files changed, 32 insertions(+), 16 deletions(-) diff --git a/clamav-details-html.lsp b/clamav-details-html.lsp index 778a3bf..78db808 100644 --- a/clamav-details-html.lsp +++ b/clamav-details-html.lsp @@ -5,9 +5,7 @@ html = require("acf.html") <% viewlibrary.dispatch_component("status") %> -

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

-
+

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

<% htmlviewfunctions.displayitem(data) %> -
diff --git a/clamav-listfiles-html.lsp b/clamav-listfiles-html.lsp index e2da86b..a858d5e 100644 --- a/clamav-listfiles-html.lsp +++ b/clamav-listfiles-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"expert"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then @@ -10,19 +28,19 @@ html = require("acf.html") end %>

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

-
- - - - - - +
FileSizeLast Modified
+ + + + + + <% for i,file in ipairs(data.value) do %> - - - - - + + + + + <% end %> -
FileSizeLast Modified
<%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %><%= html.html_escape(file.filesize) %><%= html.html_escape(file.mtime) %>
<%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %><%= html.html_escape(file.filesize) %><%= html.html_escape(file.mtime) %>
+ -- cgit v1.2.3