From 86b646ce7823f614db0884a330e82a45d6d85ffa Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:24:00 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- dansguardian-general-html.lsp | 9 --------- dansguardian-listfiles-html.lsp | 36 ++++++++++++++++++++++++++---------- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/dansguardian-general-html.lsp b/dansguardian-general-html.lsp index 717f1f0..f73473b 100644 --- a/dansguardian-general-html.lsp +++ b/dansguardian-general-html.lsp @@ -15,10 +15,8 @@ end %> val.name = field end %> -

General

-

These parameters define the interface and port that Dansguardian uses to accept connections.

@@ -27,10 +25,8 @@ These parameters define the interface and port that Dansguardian uses to accept htmlviewfunctions.displayformitem(form.value.filterip) htmlviewfunctions.displayformitem(form.value.filterport) %> -

Proxy service

-

These parameters define the ip address and port that Dansguardian should forward requests on to.

@@ -39,10 +35,8 @@ These parameters define the ip address and port that Dansguardian should forward htmlviewfunctions.displayformitem(form.value.proxyip) htmlviewfunctions.displayformitem(form.value.proxyport) %> -

Filter Actions

-

These parameters define how sensitive the filter is, and where to redirect requests if the content filter determines that the content is inappropriate. The "naughtynesslimit" is more sensitive the lower it is set. @@ -53,9 +47,6 @@ The author recommends 50 for "young children", 100 for "older children" and 160 htmlviewfunctions.displayformitem(form.value.accessdeniedaddress) htmlviewfunctions.displayformitem(form.value.naughtynesslimit) %> -

Save Changes

-
<% htmlviewfunctions.displayformend(form) %> -
diff --git a/dansguardian-listfiles-html.lsp b/dansguardian-listfiles-html.lsp index aea8ecc..5339110 100644 --- a/dansguardian-listfiles-html.lsp +++ b/dansguardian-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,18 +28,16 @@ html = require("acf.html") end %>

Configuration

-
- - - - - - - +
FileSizeLast Modified
+ + + + + + <% for k,v in ipairs( view.value ) do io.write( "\n" ) end %> -
FileSizeLast Modified
" .. html.html_escape(v.filename) .. "" .. html.html_escape(v.size) .."" .. html.html_escape(v.mtime) .."
-
+ -- cgit v1.2.3