<% local form, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"upgrade", "install"}, session) %> <% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) %> <% if viewlibrary.check_permission("install") or viewlibrary.check_permission("upgrade") then %> <% end %> <% local packagecfe = cfe({ type="hidden", value="" }) %> <% for i,packagetable in pairs(form.value) do %> <% if viewlibrary.check_permission("install") or viewlibrary.check_permission("upgrade") or viewlibrary.check_permission("details") then %> <% packagecfe.value = packagetable.name %> <% end %> <% end %>
ActionPackage Name Version
<% if viewlibrary.check_permission("install") and not packagetable.upgrade then %> <% htmlviewfunctions.displayitem(cfe({type="form", value={package=packagecfe}, label="", option="Install", action="install" }), page_info, -1) %> <% end %> <% if viewlibrary.check_permission("upgrade") and packagetable.upgrade then %> <% htmlviewfunctions.displayitem(cfe({type="form", value={package=packagecfe}, label="", option="Upgrade", action="upgrade" }), page_info, -1) %> <% end %> <% if viewlibrary.check_permission("details") then %> <% htmlviewfunctions.displayitem(cfe({type="form", value={package=packagecfe}, label="", option="View", action="details" }), page_info, -1) %> <% end %> <%= html.html_escape(packagetable.name) %> <%= html.html_escape(packagetable.version) %>
<% htmlviewfunctions.displaysectionend(header_level) %>