## 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', """Details about each repository revision listed in reverse chronological order. """ ], [ 'Repository-list', """Integrate one or more repositories with projects by providing its type (like svn ...) and root-url. Make sure that root-url points to the same machine, or to a machine on the local network.
Repositories integrated with this project are listed in grid-style. Edit them inline. """ ], [ 'Browsing', """ Browsing the repository is provided in explorer style. By default the latest version of the repository is shown in the explorer widget. To explore a different revision use < revno and revno > links. """ ], [ 'Files', """ Files in repository are viewable with syntax highlighting, annotation and changesets. """ ], ] import xml.etree.cElementTree as et from pygments.formatters import HtmlFormatter %> <%def name="hd_links()"> ${parent.hd_links()} <%def name="hd_styles()"> ${parent.hd_styles()} <%def name="hd_script()"> ${parent.hd_script()} <%def name="changedfile( cf )"> <% cf_ddurl = '' if cf['mime_type'] == 'text/directory' : cf_url = 'dir: '+cf['repos_path']+'' else : cf_url = 'file:%s' % \ ( cf['fileurl'], cf['repos_path'] ) cfdiff = cf['diff'].strip() cfdiff = cf['diff'].strip('\r\n\t') if cfdiff : cfdiff = h.syntaxhl( cfdiff, lexname='diff', linenos=True ) cfdiff = '%s' % cfdiff else : cfdiff = ' Empty difference' %> % if cf['changetype'] == 'modified' : Modified ( diff ) ${cf_url |n} download-diff % elif cf['changetype'] == 'added' : Added ${cf_url |n} % elif cf['changetype'] == 'deleted' : Deleted ${cf['repos_path']} % elif cf['changetype'] == 'normal' : Normal ${cf_url |n} % endif
${cfdiff | n}
<%def name="showrevision()"> <% if c.revno_p : prevrev = [ '‹ r'+str(c.revno_p) or '', h.url_revprev ] if c.revno_n : nextrev = [ 'r'+str(c.revno_n)+' ›' or '', h.url_revnext ] %>
% if c.revno_p : ${prevrev[0] | n} % endif r${c.revno} % if c.revno_n : ${nextrev[0] | n} % endif
Review Revision: r${c.revision[1]} by ${c.revision[2]}, on ${c.revision[3].strftime( '%a, %b %d, %Y' )}


Log Message


${c.revision[0]}


Affected Files


% for cf in c.changedfiles : ${changedfile( cf )} % endfor
<%def name="bd_body()"> <% title = '%s' % c.vcs.name sel_vcs = capture( forms.form_selectvcs, c.authuser, c.vcslist, c.vcs and c.vcs.name or '' ) vcsbrowse = 'Browser' % h.url_vcsbrowse revlist = 'Revisions' % h.url_revlist if c.vcseditable : newvcs = '' +\ 'Integrate' % \ h.url_vcscreate else : newvcs = '' tline = capture( elements.iconlink, h.url_vcstimeline, 'timeline', title="Timeline of vcs-integration" ) %> ${elements.mainnav()} ${elements.contextnav([ title, sel_vcs, vcsbrowse, revlist, newvcs, ], rspans=[ tline ], tooltips=page_tooltips)}
% if c.authusername == 'anonymous' or not c.userpanes :
% else :
% endif
${showrevision()}
% if c.authusername != 'anonymous' and c.userpanes :
${elements.user_panes( c.userpanes )}
% endif
<%def name="bd_script()"> ${parent.bd_script()}