diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:13:03 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:13:03 +0000 |
commit | 4bb2016a803fb04a7ea6b287cbfb64a428f3d52b (patch) | |
tree | ab9d6f483d8141946dd772693324a21bf6407e5d /tcpproxy-listsmtpfiles-html.lsp | |
parent | 797b83deee8dd6d950408a429e6b688da8bab159 (diff) | |
download | acf-tcpproxy-4bb2016a803fb04a7ea6b287cbfb64a428f3d52b.tar.bz2 acf-tcpproxy-4bb2016a803fb04a7ea6b287cbfb64a428f3d52b.tar.xz |
Change listsmtpfiles to return cfe structure with details rather than list
Diffstat (limited to 'tcpproxy-listsmtpfiles-html.lsp')
-rw-r--r-- | tcpproxy-listsmtpfiles-html.lsp | 8 |
1 files changed, 6 insertions, 2 deletions
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") <tr> <th>Action</th> <th>File</th> + <th>Size</th> + <th>Last Modified</th> </tr> </thead><tbody> <% local filename = cfe({ type="hidden", value="" }) %> @@ -37,7 +39,7 @@ html = require("acf.html") <tr> <td> <% - 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 %> </td> - <td><%= html.html_escape(file) %></td> + <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> </tr> <% end %> </tbody></table> |