summaryrefslogtreecommitdiffstats
path: root/ipsectools-viewcert-html.lsp
blob: 8238464629ea84feb1c450d5bbfd89e027e2d0b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<% local view, viewlibrary, page_info, session = ... %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>

<% if view.value.result then %>
	<% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Certificate Details"}), page_info) %>
	<% htmlviewfunctions.displayitem(view.value.cert, page_info) %>
	<pre><%= html.html_escape(view.value.result.value) %></pre>
	<% htmlviewfunctions.displaysectionend(header_level) %>
<% else
	htmlviewfunctions.displayitem(view, page_info)
end %>