% local view, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>
<% html = require("acf.html") %>
<% htmlviewfunctions.displaycommandresults({"checkenvironment", "putcacert", "generatecacert"}, session, true) %>
<% htmlviewfunctions.displaycommandresults({"install"}, session) %>
System Info
<%
htmlviewfunctions.displayitem(view.value.version)
if view.value.version and view.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then
%>
- Install package
<% end %>
<% htmlviewfunctions.displayitem(view.value.conffile) %>
<% htmlviewfunctions.displayitem(view.value.environment) %>
<% htmlviewfunctions.displayitem(view.value.cacert) %>
<% htmlviewfunctions.displayitem(view.value.cakey) %>
<% if not view.value.version.errtxt and not view.value.conffile.errtxt then
if view.value.environment.errtxt then
if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("checkenvironment") then
viewlibrary.dispatch_component("checkenvironment")
end
elseif not view.value.cacert.errtxt and not view.value.cakey.errtxt then %>
CA Certificate contents
<%= html.html_escape(view.value.cacertcontents.value) %>
<% elseif viewlibrary and viewlibrary.dispatch_component then
if viewlibrary.check_permission("putcacert") then
viewlibrary.dispatch_component("putcacert")
end
if viewlibrary.check_permission("generatecacert") then
viewlibrary.dispatch_component("generatecacert")
end
end
end %>
<% if viewlibrary.check_permission("downloadcacert") then %>
Download CA Cert
<%= html.link{value="downloadcacert?certtype=pem", label="Download PEM"} %>
<%= html.link{value="downloadcacert?certtype=der", label="Download DER"} %>
<%= html.link{value="downloadcacert", label="Import to Firefox"} %>
<% end %>