diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:05:00 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:05:00 +0000 |
commit | e7b9f25767decdd278d2e2aa2d9288a55e700f26 (patch) | |
tree | aac581782fae65bafcd86c8a0833107203a4ef2f /kamailio-listfiles-html.lsp | |
parent | 1dbde0efb3bd0890f8f97038f56c7474fd8e1a50 (diff) | |
download | acf-kamailio-e7b9f25767decdd278d2e2aa2d9288a55e700f26.tar.bz2 acf-kamailio-e7b9f25767decdd278d2e2aa2d9288a55e700f26.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 'kamailio-listfiles-html.lsp')
-rw-r--r-- | kamailio-listfiles-html.lsp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamailio-listfiles-html.lsp b/kamailio-listfiles-html.lsp index 8d16038..5b1c284 100644 --- a/kamailio-listfiles-html.lsp +++ b/kamailio-listfiles-html.lsp @@ -43,8 +43,8 @@ end %> <tr> <td><% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="edit"}), 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> |