diff options
-rw-r--r-- | openssl-status-html.lsp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp index 0f73d35..d191f76 100644 --- a/openssl-status-html.lsp +++ b/openssl-status-html.lsp @@ -1,13 +1,19 @@ -<% local view, viewlibrary, pageinfo, session = ... %> +<% local view, viewlibrary, page_info, session = ... %> <% require("viewfunctions") %> <% displaycommandresults({"checkenvironment", "putcacert", "generatecacert"}, session, true) %> +<% displaycommandresults({"install"}, session) %> <H1>System Info</H1> <DL> -<% displayitem(view.value.version) %> -<% if view.value.version and view.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then %> - <a href="<%= html.html_escape(page_info.script .. "/apk-tools/apk/install?package="..view.value.version.name) %>">Install</a> +<% +displayitem(view.value.version) +if view.value.version and view.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then +%> + <DT>Install package</DT> + <DD><form action="<%= html.html_escape(page_info.script .. "/apk-tools/apk/install") %>" method="POST"> + <input type='hidden' name='package' value='<%= html.html_escape(view.value.version.name) %>'> + <input class='submit' type='submit' value='Install'></form></DD> <% end %> <% displayitem(view.value.conffile) %> <% displayitem(view.value.environment) %> |