From 2b3e28518b6c5488412fde37fb8e6fba49591937 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:54:20 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- shorewall-details-html.lsp | 8 +++----- shorewall-listfiles-html.lsp | 47 +++++++++++++++++++++++++++++--------------- 2 files changed, 34 insertions(+), 21 deletions(-) diff --git a/shorewall-details-html.lsp b/shorewall-details-html.lsp index 4b04fce..e3fca74 100644 --- a/shorewall-details-html.lsp +++ b/shorewall-details-html.lsp @@ -6,9 +6,7 @@ html = require("acf.html") viewlibrary.dispatch_component("status") end %> -

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

-
-
+

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

+
 <%= html.html_escape(data.value) %>
-
-
+ diff --git a/shorewall-listfiles-html.lsp b/shorewall-listfiles-html.lsp index 0183582..21422ff 100644 --- a/shorewall-listfiles-html.lsp +++ b/shorewall-listfiles-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"edit"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then @@ -10,21 +28,18 @@ 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 = "edit?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %><%= html.html_escape(file.filesize) %><%= html.html_escape(file.mtime) %>
<%= html.link{value = "edit?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