From 593eb28947e4aa7060d1570d43271d83e589fab3 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:28:07 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- fetchmail-config-html.lsp | 13 ++++----- fetchmail-listentries-html.lsp | 63 +++++++++++++++++++++++++++--------------- 2 files changed, 47 insertions(+), 29 deletions(-) diff --git a/fetchmail-config-html.lsp b/fetchmail-config-html.lsp index fc725c7..d23df93 100644 --- a/fetchmail-config-html.lsp +++ b/fetchmail-config-html.lsp @@ -8,15 +8,14 @@ viewlibrary.dispatch_component("status") end %> -

Global Settings

- -
-
Edit global settings
-
" method="POST"> +

Global Settings

+

Edit global settings

+
+" method="post"> -
-
+ + <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("listentries") diff --git a/fetchmail-listentries-html.lsp b/fetchmail-listentries-html.lsp index b19f2ca..0e7e9c1 100644 --- a/fetchmail-listentries-html.lsp +++ b/fetchmail-listentries-html.lsp @@ -3,35 +3,54 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"editentry", "deleteentry", "createentry"}, session) %>

Edit/View Fetchmail Entries

-
- - - - - - - - +
ActionRemote HostEnabledMethodRemote Mailbox / Domain
+ + + + + + + + <% for i,entry in ipairs(data.value) do %> - - + - - - - - + + + + + + <% end %> -
ActionRemote HostEnabledMethodRemote Mailbox / Domain
+
<% io.write(html.link{value = "editentry?remotehost=" .. entry.remotehost.."&method="..entry.method.."&remotemailbox="..entry.remotemailbox.."&localdomain="..entry.localdomain.."&redir="..page_info.orig_action, label="Edit " }) %> <% io.write(html.link{value = "deleteentry?submit=true&remotehost=" .. entry.remotehost.."&method="..entry.method.."&remotemailbox="..entry.remotemailbox.."&localdomain="..entry.localdomain, label="Delete " }) %> - <%= html.html_escape(entry.remotehost) %><%= html.html_escape(tostring(entry.enabled)) %><%= html.html_escape(entry.method) %><% if entry.localdomain and entry.localdomain ~= "" then io.write(html.html_escape(entry.localdomain)) else io.write(html.html_escape(entry.remotemailbox)) end %>
<%= html.html_escape(entry.remotehost) %><%= html.html_escape(tostring(entry.enabled)) %><%= html.html_escape(entry.method) %><% if entry.localdomain and entry.localdomain ~= "" then io.write(html.html_escape(entry.localdomain)) else io.write(html.html_escape(entry.remotemailbox)) end %>
+ -
Add new entry
-
" method="POST"> +

Add new entry

+
+" method="post"> -
-
+ + -- cgit v1.2.3