<% local data, viewlibrary, page_info = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %> <% local header_level = htmlviewfunctions.displaysectionstart(data, page_info) %> <% htmlviewfunctions.displayitem(data.value.status) %> <% htmlviewfunctions.displayitemstart() %> <%= html.html_escape(data.value.peers_list.label) %> <% htmlviewfunctions.displayitemmiddle() %> <% local found for intf,addresses in pairs(data.value.peers_list.value) do found = true %> <% for i,entries in ipairs(addresses) do io.write("\n") for j,entry in pairs(entries) do if j ~= "Protocol-Address" then io.write("\n") end end end io.write("\t\t\t
<%= html.html_escape(intf) %>
" .. html.html_escape(entries["Protocol-Address"].value) .. "
"..html.html_escape(entry.label)..""..html.html_escape(entry.value)) if entry.descr then io.write(" (" .. html.html_escape(entry.descr) .. ")") end io.write("
") end if not found then io.write("No peers found\n") end %> <% htmlviewfunctions.displayitemend() %> <% htmlviewfunctions.displaysectionend(header_level) %>