summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lbu-config-html.lsp4
-rw-r--r--lbu-listbackups-html.lsp38
-rw-r--r--lbu-listchanges-html.lsp24
-rw-r--r--lbu-status-html.lsp4
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 %>
-<H1>Config</H1>
+<h1>Config</h1>
<%
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")
%>
+<script type="text/javascript">
+ if (typeof jQuery == 'undefined') {
+ document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"><\/script>');
+ }
+</script>
+
+<script type="text/javascript">
+ if (typeof $.tablesorter == 'undefined') {
+ document.write('<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery.tablesorter.js"><\/script>');
+ }
+</script>
+
+<script type="text/javascript">
+ $(document).ready(function() {
+ $("#backuplist").tablesorter({headers: {0:{sorter: false}}, widgets: ['zebra']});
+ });
+</script>
+
<% htmlviewfunctions.displaycommandresults({"selectbackup"}, session) %>
-<H1>Backup Archives</H1>
-<DL>
+<h1>Backup Archives</h1>
<% if #view.value == 0 then %>
-No backup files
+<p>No backup files</p>
<% else %>
- <table><tr>
- <td class="header">Action</td>
- <td class="header">File</td>
+ <table id="backuplist" class="tablesorter"><thead>
+ <tr>
+ <th>Action</th>
+ <th>File</th>
</tr>
+ </thead><tbody>
<% for i,name in ipairs(view.value) do %>
<tr><td>
<%= html.link{value="selectbackup?backup="..name.."&redir=config&submit=true", label="Revert "} %>
</td>
<td><%= html.html_escape(name) %></td></tr>
- <% end
-end %>
-</table>
-</DL>
+ <% end %>
+ </tbody></table>
+<% 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 %>
-<H1>Download Overlay</H1>
-<DL>
- <DT>Generate and download overlay</DT>
- <DD><form action="<%= html.html_escape(page_info.script .. page_info.prefix) %>lbu/getpackage" method="POST">
+<h1>Download Overlay</h1>
+ <div class='item'><p class='left'>Generate and download overlay</p>
+ <div class='right'>
+ <form action="<%= html.html_escape(page_info.script .. page_info.prefix) %>lbu/getpackage" method="post">
<input type="hidden" name="viewtype" value="stream">
- <input class="submit" type="submit" name="submit" value="Download"></form></DD>
-</DL>
+ <input class="submit" type="submit" name="submit" value="Download"></form>
+ </div></div><!-- end .item -->
<% end %>
-<H1>Changes Since Last Commit</H1>
-<DL>
- <dt>Files changed since last commit</dt>
- <dd><pre><%
+<h1>Changes Since Last Commit</h1>
+ <div class='item'><p class='left'>Files changed since last commit</p>
+ <div class='right'>
+ <pre><%
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
- %></pre></DD>
-</DL>
+ %></pre>
+ </div></div><!-- end .item -->
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")
%>
-<H1>System Info</H1>
-<DL>
+<h1>System Info</h1>
<%
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 %>
-</DL>