% local data, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"deletefile", "expert", "rebuilddatabases"}, session) %> <% htmlviewfunctions.displaycommandresults({"createfile"}, session, true) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %> <% local header_level = htmlviewfunctions.displaysectionstart(data, page_info) %>
Action | File | Size | Last Modified |
---|---|---|---|
<% filename.value = file.filename %> <% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="Edit", action="expert"}), page_info, -1) %> <% if file.filename ~= "/etc/mail/aliases" then %> <% htmlviewfunctions.displayitem(cfe({type="form", value={filename=filename}, label="", option="Delete", action="deletefile"}), page_info, -1) %> <% end %> | <%= html.html_escape(file.filename) %> | <%= html.html_escape(file.size or 0) %>b<%= format.formatfilesize(file.size) %> | <%= format.formattime(file.mtime) %> |