## 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"/>
<%namespace name="forms" file="/component/forms.html"/>
<%!
page_tooltips = [
[ 'Help',
"""User preference"""
],
[ 'User Home',
"""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>
<%def name="bd_body()">
<%
pagebartext = "User preference (%s)" % c.authusername
users = '
' % h.url_usershome )
uhome = '' % h.url_userhome )
usersgmap = '' % h.url_usersgmap )
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, [ uhome, users, usersgmap, mytickets ],
rspans=[ charts, tline ],
tooltips=page_tooltips )}
% if c.authusername == 'anonymous' or not c.userpanes :
% else :
% endif
${forms.form_accountinfo( c.authuser, h.suburl_accountinfo )}
want to see you in google maps ? Enable `googlemaps` in
site-admin->siteConfig
${forms.form_updtpass( c.authuser, h.suburl_updtpass )}
% if c.authusername != 'anonymous' and c.userpanes :
${elements.user_panes( c.userpanes )}
% endif
%def>
<%def name="bd_script()">
${parent.bd_script()}
% if c.googlemaps :
% endif
%def>