## 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', """Review - documents, code and wiki pages. Every review created, has an author, a moderator and participants. """ ], [ '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.""" ], [ 'View-withsource', """Review comments can be added interactively while viewing the reviewed item.""" ], [ 'Timeline', """Timeline gives a log of all updates done to Review(s).""" ], ] %> <%def name="hd_links()"> ${parent.hd_links()} <%def name="hd_script()"> ${parent.hd_script()} <%def name="reviewcomments()"> <% closed = c.review.closed and 'strike' or '' %>
${c.cnt_comments} Comments | ${c.cnt_pending} Pending [ View-withsource ]
${elements.showpeople()}

Review ${c.review.id} ( ${"%s, ver:%s" % (c.review.resource_url, c.review.version) } )

% if c.revwcmtable :
New review comment
${forms.form_creatercmt( c.authuser, c.project, c.review, h.suburl_creatercmt, c.naturenames )}
% endif
${forms.form_replyrcmt( c.authuser, c.project, c.review, h.suburl_replyrcmt )}
${forms.form_processrcmt( c.authuser, c.project, c.review, h.suburl_processrcmt )}
<%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 '' ) searchbox = capture( forms.form_searchbox, c.authuser, 'searchreview', 'Search-review', h.suburl_search, c.searchfaces ) fav = capture( elements.favoriteicon, 'favrevw' ) if c.revweditable : newrevw = ' \ \ Create' % h.url_revwcreate else : newrevw = '' 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( [ fav, searchbox, sel_revw, sel_rset, newrevw, revwsets ], rspans=[ charts, tline ], tooltips=page_tooltips )}
% if c.authusername == 'anonymous' or not c.userpanes :
% else :
% endif
% if c.authorized : ${forms.form_revwfav( c.authuser, c.project, c.review, h.suburl_revwfav, c.isuserfavorite and 'delfavuser' or 'addfavuser' )} % endif ${reviewcomments()}
% if c.authusername != 'anonymous' and c.userpanes :
${elements.user_panes( c.userpanes )}
% endif
<%def name="bd_script()"> ${parent.bd_script()}