%!
from kaithem.src.util import url as urlesc
from kaithem.src import auth
from kaithem.src import widgets
from kaithem.src import unitsofmeasure
import traceback
%>
<%include file="/pageheader.html"/>
User ${username}
Edit User: ${username}
%try:
Login History
%for i in reversed(auth.Users[username]['loginhistory']):
${unitsofmeasure.strftime(i[0])|h}: login from ${i[1]|h}
%endfor
%except:
Err in login history${traceback.format_exc()}
%endtry
%try:
Telemetry
User ${username} has open WebSocket connections from these addresses:
%for i in widgets.ws_connections.values():
%if i.user == username: