summaryrefslogtreecommitdiffstats
path: root/lbu-listbackups-html.lsp
blob: fc2153c7a35080689da5edee940e954e69088322 (plain) (blame)
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 view, viewlibrary, pageinfo, session = ... 
require("htmlviewfunctions")
%>

<% htmlviewfunctions.displaycommandresults({"selectbackup"}, session) %>

<H1>Backup Archives</H1>
<DL>
<% if #view.value == 0 then %>
No backup files
<% else %>
	<table><tr>
		<td class="header">Action</td>
		<td class="header">File</td>
	</tr>
	<% for i,name in ipairs(view.value) do %>
		<tr><td>
			<%= html.link{value="selectbackup?backup="..name.."&redir=config&submit=true", label="Revert "} %>
		</td>
		<td><%= html.html_escape(name) %></td></tr>
	<% end
end %>
</table>
</DL>