diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-09-20 19:38:06 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-09-20 20:00:41 +0000 |
commit | e4a9d44ad29cbc2ab1787fd7e207faecb124f3a7 (patch) | |
tree | 22d3a18059730cc458f395262bc03984db28da7c | |
parent | c1421098502d1523627b2b148ccdf572016f5e82 (diff) | |
download | acf-openssl-e4a9d44ad29cbc2ab1787fd7e207faecb124f3a7.tar.bz2 acf-openssl-e4a9d44ad29cbc2ab1787fd7e207faecb124f3a7.tar.xz |
Fix package version in status page
(cherry picked from commit 478c14bd255dbfffc232152ef4578cd08c12fa96)
-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 1837ab0..5ac937f 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) %> |