From 28804449df1f28067b9eba8475452b5c97b2a1ac Mon Sep 17 00:00:00 2001 From: Luke Stuart Date: Wed, 10 Aug 2011 15:03:33 +0000 Subject: Weblog Updates including Squark support and revamped analysis. --- weblog-listfiles-html.lsp | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 weblog-listfiles-html.lsp (limited to 'weblog-listfiles-html.lsp') diff --git a/weblog-listfiles-html.lsp b/weblog-listfiles-html.lsp new file mode 100644 index 0000000..c2fe301 --- /dev/null +++ b/weblog-listfiles-html.lsp @@ -0,0 +1,42 @@ +<% local view, viewlibrary, page_info, session = ... +require("viewfunctions") +%> + +<% displaycommandresults({"editfile", "deletefile", "startstop"}, session) %> +<% displaycommandresults({"createfile"}, session, true) %> + + +

File List

+
+ + + + + +<% for i,file in ipairs(view.value) do %> + + + + +<% 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) %>
+
+ +<% 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