<% local view, viewlibrary, page_info, session = ... require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"editfile", "deletefile", "reloadxml"}, session) %> <% htmlviewfunctions.displaycommandresults({"createfile"}, session, true) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %>

Configuration

<% for k,v in ipairs( view.value ) do %> <% end %>
Action File Size Last Modified
<% if viewlibrary.check_permission("editfile") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editfile?filename="..v.filename.."&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?submit=true&filename="..v.filename, label="Delete "} %> <% end %> <%= 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" htmlviewfunctions.displayform(createform) end %> <% if viewlibrary.check_permission("reloadxml") then %>

Reload XML

Reload XML
<% end %>