From fb7ce759c1045daf20e416547e6111f796030b60 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 17 Apr 2014 00:55:44 +0000 Subject: Started changes to use new htmlviewfunctions functions Still work to do to remove styling and long messy links --- weblog-listfiles-html.lsp | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'weblog-listfiles-html.lsp') diff --git a/weblog-listfiles-html.lsp b/weblog-listfiles-html.lsp index ea2ab2c..a5f28b8 100644 --- a/weblog-listfiles-html.lsp +++ b/weblog-listfiles-html.lsp @@ -31,21 +31,32 @@ end <% htmlviewfunctions.displaycommandresults({"editfile"}, session) %> -

File List

+<% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %> + - <% for k,v in ipairs( view.value ) do - io.write( "\n" ) - end %> + +<% local filename = cfe({ type="hidden", value="" }) %> +<% local redir = cfe({ type="hidden", value=page_info.orig_action }) %> +<% for i,file in ipairs( view.value ) do %> + <% filename.value = file.filename %> + + + + + + +<% end %>
Action File Size Last Modified
" .. html.html_escape(v.filename) .. ''..convertsize(v.size).."b" .. html.html_escape(v.size) .."" .. html.html_escape(v.mtime) .."
<% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="editfile"}), page_info, -1) %><%= html.html_escape(file.filename) %><%= convertsize(file.size) %>b<%= html.html_escape(file.size) %><%= html.html_escape(file.mtime) %>
+<% htmlviewfunctions.displaysectionend(header_level) %> -- cgit v1.2.3