## 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', """Snatpshot of user activity and statistics""" ], [ 'Users', """List of registered users, and their summary""" ], [ 'GoogleMap', """If enable in site-admin -> site-config, watch yourself and your friends in googlemap""" ], [ 'MyTickets', """All tickets that user participates in, across projects""" ], [ 'Timeline', """Timeline of user activity""" ], ] %> <%def name="hd_script()"> ${parent.hd_script()} <%def name="ticketstat( tickets, tckcomments )">
Commented ${tckcomments} times on tickets
<%def name="wikistat( wikicomments )">
Commented ${wikicomments} times for wiki pages
<%def name="reviewstat( authoredrevw, modertrevw, particprevw, revwcomments )">
Authored ${authoredrevw} reviews; Moderated ${modertrevw} reviews; Participated in ${particprevw} reviews; Commented ${revwcomments} times for reviews
<%def name="bd_body()"> <% pagebartext = "%s" % c.user.username users = '
' +\ ( 'Users
' % h.url_usershome ) usersgmap = '
' +\ ( 'OnGooglemap
' % h.url_usersgmap ) mytickets = '
' +\ ( 'MyTickets
' % h.url_mytickets ) charts = capture( elements.iconlink, h.url_usercharts, 'barchart', title="Analytics on %s" % c.username ) tline = capture( elements.iconlink, h.url_usertline, 'timeline', title="Timeline" ) %> ${elements.pagebar( pagebartext, [ users, usersgmap, mytickets ], rspans=[ charts, tline ], tooltips=page_tooltips )}
% if c.authusername == 'anonymous' or not c.userpanes :
% else :
% endif
${elements.userdetails( c.user, c.user.userinfo, h.url_userphoto )}
<% adminprojects = c.statistics['adminprojects'] inprojects = c.statistics['inprojects'] projects = list(set(adminprojects + inprojects.keys())) projcomps = {} [ projcomps.setdefault( comp.project.projectname, [] ).append( comp.componentname ) for comp in c.user.owncomponents ] %>
Administrator : ${', '.join( [ '%s' % ( h.url_forproject(p), p ) for p in adminprojects ]) | n }
Project teams :
% for p in inprojects : % endfor
${p} : ${', '.join(inprojects[p])}
Own components :
% for p, comps in projcomps.iteritems() : % endfor
${p} ${', '.join(comps)}
Files uploaded : ${c.statistics['uploadedfiles']} files
Down-voted : ${c.statistics['votes']['down']} times
Up-voted : ${c.statistics['votes']['up']} times
For tickets :
Participated in ${c.statistics['tickets']} tickets,
providing ${c.statistics['tckcomments']} comments
For wiki :
commented ${c.statistics['wikicomments']} times
For review :
Authored ${c.statistics['authoredrevw']} reviews,
moderated ${c.statistics['modertrevw']} reviews,
participated in ${c.statistics['particprevw']} reviews,
providing ${c.statistics['revwcomments']} comments
want to see users in google maps ? Enable `googlemaps` in site-admin->siteConfig

Recent activities

    % for log in c.logs :
  • ${elements.iconize( log.created_on.strftime("%a, %b %d, %Y"), 'plus_exp', span_name='interface', classes='pointer mr5' )} in ${log.itemhtml |n } ${log.log}
  • % endfor
% if c.authusername != 'anonymous' and c.userpanes :
${elements.user_panes( c.userpanes )}
% endif <%def name="bd_script()"> ${parent.bd_script()} % if c.googlemaps : % endif