% local view, viewlibrary, page_info = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% if view.filename then view.label = view.label.." for "..string.gsub(view.filename, "^.*/", "") end %> <% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %> <% local header_level2 = htmlviewfunctions.displaysectionstart(cfe({label="Locations"}), page_info, htmlviewfunctions.incrementheader(header_level)) %>
<%= string.gsub(html.html_escape(loc.errtxt), "\n", "
") %>
No locations defined
<% else %> <% end %> <% htmlviewfunctions.displaysectionend(header_level2) %> <% local function doListIndents(next, indent) local newentry = {} for mt in string.gmatch(next, "([^.]+)") do table.insert(newentry, mt) end local revnewentry = {} for j=#newentry,1,-1 do table.insert(revnewentry, newentry[j]) end local i=1 while indent[i] and revnewentry[i] == indent[i] do i=i+1 end local ending = #indent-(i-1) local starting = #newentry-(i-1) for j=1,ending do io.write("\n") end for j=1,starting do io.write("<%= html.html_escape(entry.configline) %>
<%= html.html_escape(view.fieldlabels[entry.type][k]) %>: | <%= html.html_escape(option) %> |
No records defined
<% else doListIndents("", indent) %>