diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:16:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 18:18:59 +0000 |
commit | ffa7d88fbc30ef500e108325f48826159d4309f8 (patch) | |
tree | 015445a37685b391cfb39e19e677e88e8f794bd2 /weblog-listfiles-html.lsp | |
parent | 789ccadd90f2d72ee78003dd0564862adb383d89 (diff) | |
download | acf-weblog-ffa7d88fbc30ef500e108325f48826159d4309f8.tar.bz2 acf-weblog-ffa7d88fbc30ef500e108325f48826159d4309f8.tar.xz |
Change listfiles filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions
Diffstat (limited to 'weblog-listfiles-html.lsp')
-rw-r--r-- | weblog-listfiles-html.lsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weblog-listfiles-html.lsp b/weblog-listfiles-html.lsp index b55d972..ca7245f 100644 --- a/weblog-listfiles-html.lsp +++ b/weblog-listfiles-html.lsp @@ -40,8 +40,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> |