equal
deleted
inserted
replaced
402 for _, client in ipairs(clients) do |
402 for _, client in ipairs(clients) do |
403 print(row({ |
403 print(row({ |
404 id = client.id; |
404 id = client.id; |
405 software = client.user_agent and client.user_agent.software; |
405 software = client.user_agent and client.user_agent.software; |
406 last_seen = os.date("%Y-%m-%d", client.last_seen); |
406 last_seen = os.date("%Y-%m-%d", client.last_seen); |
407 auth_methods = array.collect(it.keys(client.active)):sort(); |
407 auth_methods = array.collect(it.keys(client.active)):sort():concat(", "); |
408 })); |
408 })); |
409 end |
409 end |
410 print(string.rep("-", self.session.width)); |
410 print(string.rep("-", self.session.width)); |
411 return true, ("%d clients"):format(#clients); |
411 return true, ("%d clients"):format(#clients); |
412 end |
412 end |