<% local data, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"expert"}, session) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %> <% local header_level = htmlviewfunctions.displaysectionstart(data, page_info) %> <% local filename = cfe({ type="hidden", value="" }) %> <% local redir = cfe({ type="hidden", value=page_info.orig_action }) %> <% for i,file in ipairs(data.value) do %> <% filename.value = file.filename %> <% end %>
Action File Size Last Modified
<% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="expert"}), page_info, -1) %> <%= html.html_escape(file.filename) %> <%= html.html_escape(file.size or 0) %>b<%= format.formatfilesize(file.size) %> <%= format.formattime(file.mtime) %>
<% htmlviewfunctions.displaysectionend(header_level) %>