From 382699649697c90d3469acbc2f41b59e67e904ce Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:19:28 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- lbu-config-html.lsp | 4 ++-- lbu-listbackups-html.lsp | 38 ++++++++++++++++++++++++++++---------- lbu-listchanges-html.lsp | 24 ++++++++++++------------ lbu-status-html.lsp | 4 +--- 4 files changed, 43 insertions(+), 27 deletions(-) diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp index edb8f2f..05ecad3 100644 --- a/lbu-config-html.lsp +++ b/lbu-config-html.lsp @@ -8,10 +8,10 @@ htmlviewfunctions = require("htmlviewfunctions") viewlibrary.dispatch_component("status") end %> -

Config

+

Config

<% local order = { "LBU_MEDIA", "ENCRYPTION", "DEFAULT_CIPHER", "PASSWORD" } - htmlviewfunctions.displayform(form, order) + htmlviewfunctions.displayform(form, order, nil, page_info, 2) if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("editincluded") diff --git a/lbu-listbackups-html.lsp b/lbu-listbackups-html.lsp index 67f2efc..ff10a9f 100644 --- a/lbu-listbackups-html.lsp +++ b/lbu-listbackups-html.lsp @@ -3,23 +3,41 @@ htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"selectbackup"}, session) %> -

Backup Archives

-
+

Backup Archives

<% if #view.value == 0 then %> -No backup files +

No backup files

<% else %> - - - +
ActionFile
+ + + + <% for i,name in ipairs(view.value) do %> - <% end -end %> -
ActionFile
<%= html.link{value="selectbackup?backup="..name.."&redir=config&submit=true", label="Revert "} %> <%= html.html_escape(name) %>
-
+ <% end %> + +<% end %> diff --git a/lbu-listchanges-html.lsp b/lbu-listchanges-html.lsp index 71d9ea7..84c94ae 100644 --- a/lbu-listchanges-html.lsp +++ b/lbu-listchanges-html.lsp @@ -13,19 +13,19 @@ html = require("acf.html") %> <% if viewlibrary.check_permission("getpackage") then %> -

Download Overlay

-
-
Generate and download overlay
-
+

Download Overlay

+

Generate and download overlay

+
+ -
-
+ + <% end %> -

Changes Since Last Commit

-
-
Files changed since last commit
-
<% 
+

Changes Since Last Commit

+

Files changed since last commit

+
+
<% 
 		if (#view.value == 0) then
 			io.write("None")
 		else
@@ -33,5 +33,5 @@ html = require("acf.html")
 				io.write((html.html_escape(file.status .. "\t" .. file.name .. "\n")))
 			end
 		end
-	%>
-
+ %> + diff --git a/lbu-status-html.lsp b/lbu-status-html.lsp index c47bfe2..58739d4 100644 --- a/lbu-status-html.lsp +++ b/lbu-status-html.lsp @@ -2,8 +2,7 @@ htmlviewfunctions = require("htmlviewfunctions") %> -

System Info

-
+

System Info

<% if view.value.committed.value then view.value.committed.value = "There are no uncommitted files" @@ -18,4 +17,3 @@ for name,value in pairs(view.value) do htmlviewfunctions.displayitem(value) end end %> -
-- cgit v1.2.3