From b8fd03d42b01372c2f2468b1ae2bc4e4204991a3 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:55:18 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- squid-digest-html.lsp | 11 ++++++----- squid-listfiles-html.lsp | 47 ++++++++++++++++++++++++++++++++--------------- squid-saccess-html.lsp | 9 +++++---- 3 files changed, 43 insertions(+), 24 deletions(-) diff --git a/squid-digest-html.lsp b/squid-digest-html.lsp index e8228f6..fd6f3a2 100644 --- a/squid-digest-html.lsp +++ b/squid-digest-html.lsp @@ -4,16 +4,17 @@ <% htmlviewfunctions.displaycommandresults({"enabledigestlist"}, session) %> -

Digest User List Status

-
+

Digest User List Status

<% htmlviewfunctions.displayitem(form.value.status) if form.value.status.errtxt then %> -
"> -
+

+
+
"> +
+
<% end %> -
<% local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1") diff --git a/squid-listfiles-html.lsp b/squid-listfiles-html.lsp index 90d2fe2..0aea8bf 100644 --- a/squid-listfiles-html.lsp +++ b/squid-listfiles-html.lsp @@ -3,6 +3,24 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"editfile", "deletefile"}, session) %> <% htmlviewfunctions.displaycommandresults({"createfile"}, session, true) %> @@ -10,32 +28,31 @@ html = require("acf.html") viewlibrary.dispatch_component("status") end %> -

Files

-
- - - - - +

Files

+
ActionFile
+ + + + + <% for i,file in ipairs(view.value) do %> - - + - - + + + <% end %> -
ActionFile
+
<% if viewlibrary.check_permission("editfile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editfile?filename="..file.."&redir="..page_info.orig_action, label="Edit "} %> <% end %> <% if viewlibrary.check_permission("deletefile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletefile?submit=true&filename="..file, label="Delete "} %> <% end %> - <%= html.html_escape(file) %>
<%= html.html_escape(file) %>
-
+ <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createfile") then local createform = viewlibrary.dispatch_component("createfile", nil, true) %> -

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

+

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

<% createform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/createfile" htmlviewfunctions.displayform(createform) diff --git a/squid-saccess-html.lsp b/squid-saccess-html.lsp index d89aa36..1fb6d35 100644 --- a/squid-saccess-html.lsp +++ b/squid-saccess-html.lsp @@ -13,7 +13,7 @@ html = require("acf.html") domain.

-
+

Special IP Addresses

If you wish to specify hosts that may access the Internet by IP address, @@ -39,7 +39,8 @@ Enter the domain url below. Regular expressions are allowed.

Save Changes

-
-
Save changes of the above boxes
-
+

Save changes of the above boxes

+
+ +
-- cgit v1.2.3