summaryrefslogtreecommitdiffstats
path: root/lbu-listbackups-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lbu-listbackups-html.lsp')
-rw-r--r--lbu-listbackups-html.lsp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lbu-listbackups-html.lsp b/lbu-listbackups-html.lsp
index 9b656cc..2da5ab4 100644
--- a/lbu-listbackups-html.lsp
+++ b/lbu-listbackups-html.lsp
@@ -23,7 +23,7 @@ html = require("acf.html")
<% htmlviewfunctions.displaycommandresults({"selectbackup"}, session) %>
-<h1>Backup Archives</h1>
+<% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %>
<% if #view.value == 0 then %>
<p>No backup files</p>
<% else %>
@@ -35,9 +35,10 @@ html = require("acf.html")
</thead><tbody>
<% for i,name in ipairs(view.value) do %>
<tr><td>
- <%= html.link{value="selectbackup?backup="..name.."&redir=config&submit=true", label="Revert "} %>
+ <% htmlviewfunctions.displayitem(cfe({type="link", value={backup=cfe({ type="hidden", value=name })}, label="", option="Revert", action="selectbackup"}), page_info, -1) %>
</td>
<td><%= html.html_escape(name) %></td></tr>
<% end %>
</tbody></table>
<% end %>
+<% htmlviewfunctions.displaysectionend(header_level) %>