% 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(" "..html.html_escape(view.value.commonnames.value[i]).." -> ")
end
print(""..html.html_escape(view.value.commonnames.value[#view.value.commonnames.value]).."")
htmlviewfunctions.displaysectionend(header_level)
end
%>