From 99457fa341d33006c4ff8b2b81196e5de60abb6a Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 25 Aug 2011 19:59:33 +0000 Subject: Cleaned up use of config files --- weblog-listfiles-html.lsp | 39 ++++++++------------------------------- 1 file changed, 8 insertions(+), 31 deletions(-) (limited to 'weblog-listfiles-html.lsp') diff --git a/weblog-listfiles-html.lsp b/weblog-listfiles-html.lsp index c2fe301..ba03446 100644 --- a/weblog-listfiles-html.lsp +++ b/weblog-listfiles-html.lsp @@ -2,41 +2,18 @@ require("viewfunctions") %> -<% displaycommandresults({"editfile", "deletefile", "startstop"}, session) %> -<% displaycommandresults({"createfile"}, session, true) %> - +<% displaycommandresults({"editfile"}, session) %>

File List

- - - -<% for i,file in ipairs(view.value) do %> - - - - -<% end %> + + + + + <% for k,v in ipairs( view.value ) do + io.write( "\n" ) + end %>
ActionFile
- <% if viewlibrary.check_permission("editfile") then %> - <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editfile?filename="..file.."&redir="..page_info.orig_action, label="Edit "} %> - <% end %> - <% if viewlibrary.check_permission("deletefile") then %> - <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deletefile?filename="..file, label="Delete "} %> - <% end %> - <%= html.html_escape(file) %>
FileSizeLast Modified
" .. html.html_escape(v.filename) .. "" .. html.html_escape(v.size) .."" .. html.html_escape(v.mtime) .."
- -<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createfile") then - local createform = viewlibrary.dispatch_component("createfile", nil, true) %> -

<%= html.html_escape(createform.label) %>

-<% - createform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/createfile" - displayform(createform) -end %> - -<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("startstop") then - viewlibrary.dispatch_component("startstop") -end %> -- cgit v1.2.3