diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:07:54 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-01-18 19:09:17 +0000 |
commit | 449bac6bb9fba18e97e5e7441f72b82f193fcf9d (patch) | |
tree | 5c6c4b3e5bee8f7f407e5c20fbf4f452b44c71a0 /provisioning-listfiles-html.lsp | |
parent | 168435d418b85cb776295e12fcae540a2ec1afa8 (diff) | |
download | acf-provisioning-449bac6bb9fba18e97e5e7441f72b82f193fcf9d.tar.bz2 acf-provisioning-449bac6bb9fba18e97e5e7441f72b82f193fcf9d.tar.xz |
Change file actions filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions
Diffstat (limited to 'provisioning-listfiles-html.lsp')
-rw-r--r-- | provisioning-listfiles-html.lsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/provisioning-listfiles-html.lsp b/provisioning-listfiles-html.lsp index 5763912..e92e43f 100644 --- a/provisioning-listfiles-html.lsp +++ b/provisioning-listfiles-html.lsp @@ -39,8 +39,8 @@ html = require("acf.html") <tr> <td><% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="editfile"}), page_info, -1) %></td> <td><%= html.html_escape(file.filename) %></td> - <td><span class="hide"><%= html.html_escape(file.orig_size) %>b</span><%= html.html_escape(file.size) %></td> - <td><%= html.html_escape(file.mtime) %></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> |