diff options
Diffstat (limited to 'freeswitch-listfiles-html.lsp')
-rw-r--r-- | freeswitch-listfiles-html.lsp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/freeswitch-listfiles-html.lsp b/freeswitch-listfiles-html.lsp index 9dd7e87..5752ab1 100644 --- a/freeswitch-listfiles-html.lsp +++ b/freeswitch-listfiles-html.lsp @@ -39,10 +39,10 @@ end %> </thead><tbody> <% local filename = cfe({ type="hidden", value="" }) %> <% local redir = cfe({ type="hidden", value=page_info.orig_action }) %> -<% for k,v in ipairs( view.value ) do %> +<% for i,file in ipairs( view.value ) do %> <tr> <td> - <% filename.value = v.filename %> + <% filename.value = file.filename %> <% if viewlibrary.check_permission("editfile") then %> <% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="editfile"}), page_info, -1) %> <% end %> @@ -50,9 +50,9 @@ end %> <% htmlviewfunctions.displayitem(cfe({type="form", value={filename=filename}, label="", option="Delete", action="deletefile"}), page_info, -1) %> <% end %> </td> - <td><%= html.html_escape(v.filename) %></td> - <td><span class="hide"><%= html.html_escape(v.orig_size) %>b</span><%= html.html_escape(v.size) %></td> - <td><%= html.html_escape(v.mtime) %></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> |