From 6e61bf8def93b609398c723b15017989d00cb320 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Dec 2015 14:11:02 +0000 Subject: Change listfiles to return cfe structure with details rather than list --- squid-listfiles-html.lsp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'squid-listfiles-html.lsp') diff --git a/squid-listfiles-html.lsp b/squid-listfiles-html.lsp index d1ff90f..6a1b1f3 100644 --- a/squid-listfiles-html.lsp +++ b/squid-listfiles-html.lsp @@ -33,6 +33,8 @@ end %> Action File + Size + Last Modified <% local filename = cfe({ type="hidden", value="" }) %> @@ -41,7 +43,7 @@ end %> <% - filename.value = file + filename.value = file.filename if viewlibrary.check_permission("editfile") then htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="editfile"}), page_info, -1) end @@ -50,7 +52,9 @@ end %> end %> - <%= html.html_escape(file) %> + <%= html.html_escape(file.filename) %> + <%= html.html_escape(file.size or 0) %>b<%= format.formatfilesize(file.size) %> + <%= format.formattime(file.mtime) %> <% end %> -- cgit v1.2.3