<% local form, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"updateall", "upgradeall"}, session) %> <% local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1") local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "filedetails-html.lsp") func(form, viewlibrary, page_info, session) %> <% if viewlibrary.check_permission("updateall") or viewlibrary.check_permission("upgradeall") then %>

Update / Upgrade

<% if viewlibrary.check_permission("updateall") then %>
Update Index
<% end %> <% if viewlibrary.check_permission("upgradeall") then %>
Upgrade All
<% end %>
<% end %>