summaryrefslogtreecommitdiffstats
path: root/lbu-listbackups-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-11-30 20:14:25 +0000
committerTed Trask <ttrask01@yahoo.com>2015-11-30 20:14:25 +0000
commitcd1bec6fa5a66d07319577965f5485fedcbf3fe7 (patch)
tree15760e0c181c1e793ec773459a37fe9f9fec922f /lbu-listbackups-html.lsp
parent228a648ef6b8931e575a78281678cfb887aab3ce (diff)
downloadacf-alpine-conf-cd1bec6fa5a66d07319577965f5485fedcbf3fe7.tar.bz2
acf-alpine-conf-cd1bec6fa5a66d07319577965f5485fedcbf3fe7.tar.xz
Modify listbackupfiles to report filedetails, not just a list
Diffstat (limited to 'lbu-listbackups-html.lsp')
-rw-r--r--lbu-listbackups-html.lsp8
1 files changed, 5 insertions, 3 deletions
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")
<th>File</th>
</tr>
</thead><tbody>
- <% for i,name in ipairs(view.value) do %>
+ <% for i,file in ipairs(view.value) do %>
<tr><td>
- <% 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) %>
</td>
- <td><%= html.html_escape(name) %></td></tr>
+ <td><%= html.html_escape(file.filename) %></td>
+ <td><span class="hide"><%= html.html_escape(file.size or 0) %>b</span><%= format.formatfilesize(file.size) %></td>
+ <td><%= format.formattime(file.mtime) %></td>
<% end %>
</tbody></table>
<% end %>