From 4bb2016a803fb04a7ea6b287cbfb64a428f3d52b Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Dec 2015 14:13:03 +0000 Subject: Change listsmtpfiles to return cfe structure with details rather than list --- tcpproxy-listsmtpfiles-html.lsp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tcpproxy-listsmtpfiles-html.lsp') diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp index a303f47..ac8de32 100644 --- a/tcpproxy-listsmtpfiles-html.lsp +++ b/tcpproxy-listsmtpfiles-html.lsp @@ -29,6 +29,8 @@ html = require("acf.html") Action File + Size + Last Modified <% local filename = cfe({ type="hidden", value="" }) %> @@ -37,7 +39,7 @@ html = require("acf.html") <% - filename.value = file + filename.value = file.filename if viewlibrary.check_permission("editsmtpfile") then htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="editsmtpfile"}), page_info, -1) end @@ -46,7 +48,9 @@ html = require("acf.html") 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