<% local data, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% local header_level = htmlviewfunctions.displaysectionstart(data, page_info) %> <% local header_level2 = htmlviewfunctions.incrementheader(header_level) %> <% if #data.value == 0 then io.write("

No peers found

\n") end local col1="180px" for k,v in pairs(data.value) do local label = v.host if v.name and v.name ~= v.host then label = label.." - "..html.html_escape(v.name) end htmlviewfunctions.displaysectionstart(cfe({label=label}), page_info, header_level2) io.write("") for i=1, v.cnt do io.write("") if (v.tty[i]) then io.write("") io.write("\n") else io.write("") io.write("\n") end io.write("") end io.write("
\n") io.write("") io.write("\n") io.write("\n") io.write("
Session user:".. html.html_escape(v.tty[i].user) .. "
Session TTY:".. html.html_escape(v.tty[i].tty) .. "
") io.write("
\n") io.write("") io.write("\n") io.write("\n") io.write("\n") io.write("
Session user:No records
Session TTY:No records
Other:This could be a sshfs session
") io.write("
") htmlviewfunctions.displaysectionend(header_level2) end %> <% htmlviewfunctions.displaysectionend(header_level) %>