From cd1bec6fa5a66d07319577965f5485fedcbf3fe7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 30 Nov 2015 20:14:25 +0000 Subject: Modify listbackupfiles to report filedetails, not just a list --- lbu-listbackups-html.lsp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lbu-listbackups-html.lsp') diff --git a/lbu-listbackups-html.lsp b/lbu-listbackups-html.lsp index 2da5ab4..167e06e 100644 --- a/lbu-listbackups-html.lsp +++ b/lbu-listbackups-html.lsp @@ -33,11 +33,13 @@ html = require("acf.html") File - <% for i,name in ipairs(view.value) do %> + <% for i,file in ipairs(view.value) do %> - <% htmlviewfunctions.displayitem(cfe({type="link", value={backup=cfe({ type="hidden", value=name })}, label="", option="Revert", action="selectbackup"}), page_info, -1) %> + <% htmlviewfunctions.displayitem(cfe({type="link", value={backup=cfe({ type="hidden", value=file.filename })}, label="", option="Revert", action="selectbackup"}), page_info, -1) %> - <%= html.html_escape(name) %> + <%= html.html_escape(file.filename) %> + <%= html.html_escape(file.size or 0) %>b<%= format.formatfilesize(file.size) %> + <%= format.formattime(file.mtime) %> <% end %> <% end %> -- cgit v1.2.3