diff options
Diffstat (limited to 'tcpproxy-smtpstatus-html.lsp')
-rw-r--r-- | tcpproxy-smtpstatus-html.lsp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tcpproxy-smtpstatus-html.lsp b/tcpproxy-smtpstatus-html.lsp index 3a46b19..0e3384f 100644 --- a/tcpproxy-smtpstatus-html.lsp +++ b/tcpproxy-smtpstatus-html.lsp @@ -7,7 +7,11 @@ require("viewfunctions") <H1>SMTP Proxy Status</H1> <DL> -<% displayitem(view.value.version) %> +<% displayitem(view.value.version) +if view.value.version and view.value.version.errtxt and session.permissions.apk and session.permissions.apk.install then +%> + <a href="<%= html.html_escape(page_info.script .. "/apk-tools/apk/install?package="..view.value.version.name) %>">Install</a> +<% end %> </DL> <% if viewlibrary and viewlibrary.dispatch_component then |