## This file is subject to the terms and conditions defined in
## file 'LICENSE', which is part of this source code package.
## Copyright (c) 2009 SKR Farms (P) LTD.
<%inherit file="/base/basic1.html"/>
<%namespace name="elements" file="/component/elements.html"/>
<%!
page_tooltips = [
[ 'Help',
"""List of all registered users and their summary"""
],
[ 'GoogleMap',
"""If enabled in site-admin -> site-config, watch yourself and your friends in
googlemap"""
],
[ 'Timeline',
"""Timeline of users activity"""
],
]
%>
<%def name="hd_script()">
${parent.hd_script()}
%def>
<%def name="bd_body()">
<%
pagebartext = "Users"
usersgmap = '
' % h.url_usersgmap )
charts = capture( elements.iconlink, h.url_userscharts,
'barchart', title="Analytics on users" )
tline = capture( elements.iconlink, h.url_usertline,
'timeline', title="Timeline" )
ruler = False
%>
${elements.pagebar( pagebartext, [ usersgmap ], rspans=[ charts, tline ],
tooltips=page_tooltips )}
% if c.authusername == 'anonymous' or not c.userpanes :
% else :
% endif
% for user in c.users :
<%
photofile = user.photofile
url_userphoto = photofile and \
h.url_for( h.r_attachment, id=photofile.id )
ruler = True
%>
${elements.userdetails( user, user.userinfo, url_userphoto )}
% endfor
% if c.authusername != 'anonymous' and c.userpanes :
${elements.user_panes( c.userpanes )}
% endif
%def>
<%def name="bd_script()">
${parent.bd_script()}
%def>