## 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',
"""
Collection of reviews. Especially useful to create review entries for every
modified / added file in repository changeset
"""
],
[ 'Author',
"""Author can add comments, comment's nature and also
reponsible for taking actions on all review comments."""
],
[ 'Moderator',
"""Moderator can add comments, comment's nature and is responsible
for approving actions taken on review comments. Once all the comments are
approve, the moderator can close the review."""
],
[ 'Participant',
"""Participants can comment and reply to other paticipants
comment."""
],
[ 'Timeline',
"""Timeline gives a log of all updates done to Review(s)."""
],
]
%>
<%def name="hd_links()">
${parent.hd_links()}
%def>
<%def name="hd_script()">
${parent.hd_script()}
%def>
<%def name="reviewsets( rsets )">
Id |
Name |
CreatedOn |
% for rset in rsets :
${rset.id}
|
${rset.name}
|
${rset.created_on.strftime("%a, %b %d, %Y")}
|
% endfor
%def>
<%def name="reviewset( rs )">
${rs.name}
${forms.form_updaterset( c.authuser, c.project, rs,
h.suburl_updaterset, request.url )}
${forms.form_addtorset( c.authuser, c.project, rs,
h.suburl_addtorset, c.revwloner, request.url )}
${forms.form_delfromrset( c.authuser, c.project, rs,
h.suburl_delfromrset, c.revwinrset, request.url )}
Review |
Status |
Author |
Moderator |
Participants |
Comments |
% for r in rs.reviews :
<%
a_author = '%s' % (
h.url_foruser( r.author.username ),
r.author.username
)
a_moderator = '%s' % (
h.url_foruser( r.moderator.username ),
r.moderator.username
)
a_particpts = [ '%s' % (
h.url_foruser( partc.username ),
partc.username
) for partc in r.participants ]
a_review = '%s' % (
h.url_forreview( c.projectname, r.id ),
r.resource_url
)
%>
${a_review | n} (${r.version})
|
${ 'closed' if r.closed else \
'open' | n }
|
${a_author |n}
|
${a_moderator |n}
|
% for a in a_particpts :
${a |n}
% endfor
|
${len(r.comments)}
|
% endfor
%def>
<%def name="bd_body()">
<%
sel_revw = capture( forms.form_selectrevw, c.authuser,
c.revwlist, c.review and c.review.resource_url or '' )
sel_rset = capture( forms.form_selectrset, c.authuser,
c.rsetlist, c.reviewset and c.reviewset.name or '' )
revwsets = ' \
\
Reviewsets' % h.url_reviewsets
charts = capture( elements.iconlink, h.url_revwcharts,
'barchart', title="Review analytics" )
tline = capture( elements.iconlink, h.url_revwtimeline,
'timeline', title="Timeline of reviews" )
%>
${elements.mainnav()}
${elements.contextnav( [ sel_revw, sel_rset, revwsets ],
rspans=[ charts, tline ], tooltips=page_tooltips )}
% if c.authusername == 'anonymous' or not c.userpanes :
% else :
% endif
% if c.reviewset :
${reviewset( c.reviewset )}
% elif c.reviewsets :
${reviewsets( c.reviewsets )}
% endif
% if c.authusername != 'anonymous' and c.userpanes :
${elements.user_panes( c.userpanes )}
% endif
%def>
<%def name="bd_script()">
${parent.bd_script()}
%def>