summaryrefslogtreecommitdiffstats
path: root/apk-available-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'apk-available-html.lsp')
-rw-r--r--apk-available-html.lsp19
1 files changed, 11 insertions, 8 deletions
diff --git a/apk-available-html.lsp b/apk-available-html.lsp
index 985ad8e..3d7c8bc 100644
--- a/apk-available-html.lsp
+++ b/apk-available-html.lsp
@@ -16,13 +16,13 @@
<script type="text/javascript">
$(document).ready(function() {
- $("#list").tablesorter({widgets: ['zebra']});
+ $("#list").tablesorter({headers: {0:{sorter: false}}, widgets: ['zebra']});
});
</script>
<% htmlviewfunctions.displaycommandresults({"upgrade", "install"}, session) %>
-<h1><%= form.label %></h1>
+<% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) %>
<table id="list" class="tablesorter"><thead>
<tr>
<% if viewlibrary.check_permission("install") or viewlibrary.check_permission("upgrade") then %>
@@ -32,16 +32,18 @@
<th>Version</th>
</tr>
</thead><tbody>
+<% local packagecfe = cfe({ type="hidden", value="" }) %>
<% for i,packagetable in pairs(form.value) do %>
<tr>
<% if viewlibrary.check_permission("install") or viewlibrary.check_permission("upgrade") then %>
+ <% packagecfe.value = packagetable.name %>
<td>
- <% if viewlibrary.check_permission("install") and not packagetable.upgrade then %>
- <%= html.link{value = "install?submit=true&package=" .. packagetable.name, label="Install "} %>
- <% end %>
- <% if viewlibrary.check_permission("upgrade") and packagetable.upgrade then %>
- <%= html.link{value = "upgrade?submit=true&package=" .. packagetable.name, label="Upgrade "} %>
- <% end %>
+ <% 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 %>
</td>
<% end %>
<td><%= html.link{value = "details?package="..packagetable.name, label=packagetable.name} %></td>
@@ -49,3 +51,4 @@
</tr>
<% end %>
</tbody></table>
+<% htmlviewfunctions.displaysectionend(header_level) %>