summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-09-20 19:38:06 +0000
committerTed Trask <ttrask01@yahoo.com>2011-09-20 19:38:06 +0000
commit478c14bd255dbfffc232152ef4578cd08c12fa96 (patch)
treee43107e9643524d554a0981ffe10c8795800f51a
parent8123dd0d02083d8bea32fde1fbe25d9fa374d069 (diff)
downloadacf-openssl-478c14bd255dbfffc232152ef4578cd08c12fa96.tar.bz2
acf-openssl-478c14bd255dbfffc232152ef4578cd08c12fa96.tar.xz
Fix package version in status page
-rw-r--r--openssl-status-html.lsp14
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) %>