summaryrefslogtreecommitdiffstats
path: root/openssl-getcachain-html.lsp
blob: 104950ed6af1478f92b5a0c4ea7e4bf4c79f8548 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<% local view, viewlibrary, page_info, session = ... %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% format = require("acf.format") %>
<% html = require("acf.html") %>

<%
if view.value.commonnames and #view.value.commonnames.value > 1 then
	local header_level = htmlviewfunctions.displaysectionstart(view, page_info)
	local cadirs = format.string_to_table(view.value.cadir.value, "/")
	for i,v in ipairs(view.value.commonnames.value) do
		if i == #view.value.commonnames.value then break end
		print("<a href='"..page_info.script..page_info.prefix..page_info.controller.."/status?cadir="..html.html_escape(table.concat(cadirs, "/", 1, i-1)).."'> <big>"..html.html_escape(view.value.commonnames.value[i]).."</big></a> -> ")
	end
	print("<big>"..html.html_escape(view.value.commonnames.value[#view.value.commonnames.value]).."</big>")
	htmlviewfunctions.displaysectionend(header_level)
end
%>