summaryrefslogtreecommitdiffstats
path: root/apk-expert-html.lsp
blob: 44b4b489f6fc1cf63b4f47d66f3fc68c89b9e1ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% local form, viewlibrary, page_info, session = ... %>
<% require("viewfunctions") %>

<% 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 %>
<H2>Update / Upgrade</H2>
<DL>
<% if viewlibrary.check_permission("updateall") then %>
	<DT>Update Index</DT>
	<DD><form action="updateall" method="POST"><input class="submit" type="submit" value="Update"></form></DD>
<% end %>
<% if viewlibrary.check_permission("upgradeall") then %>
	<DT>Upgrade All</DT>
	<DD><form action="upgradeall" method="POST"><input class="submit" type="submit" value="Upgrade"></form></DD>
<% end %>
</DL>
<% end %>