## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%def name="title()"> ${c.repo_name} ${_('Changeset')} - r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)} - ${c.rhodecode_name} <%def name="breadcrumbs_links()"> ${h.link_to(u'Home',h.url('/'))} » ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} » ${_('Changeset')} - r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)} <%def name="page_nav()"> ${self.menu('changelog')} <%def name="fid(raw_id,path)" filter="strip"> <% return 'C-%s-%s' % (h.short_id(raw_id),h.safeid(h.safe_unicode(path))) %> <%def name="main()">
${self.breadcrumbs()}
${h.link_to(_('raw diff'), h.url('raw_changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='show'))} » ${h.link_to(_('download diff'), h.url('raw_changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id,diff='download'))}
${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})
${_('commit')} ${c.changeset.revision}: ${h.short_id(c.changeset.raw_id)}@${c.changeset.date}
gravatar
${h.person(c.changeset.author)}
${h.email_or_none(c.changeset.author)}
${h.link_to(h.wrap_paragraphs(c.changeset.message),h.url('changeset_home',repo_name=c.repo_name,revision=c.changeset.raw_id))}
% if len(c.changeset.affected_files) <= c.affected_files_cut_off: ${len(c.changeset.removed)} ${len(c.changeset.changed)} ${len(c.changeset.added)} % else: ! ! ! % endif
%if len(c.changeset.parents)>1:
${_('merge')}merge
%endif %if c.changeset.parents: %for p_cs in reversed(c.changeset.parents):
${_('Parent')} ${p_cs.revision}: ${h.link_to(h.short_id(p_cs.raw_id), h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}
%endfor %else:
${_('No parents')}
%endif ${h.link_to(c.changeset.branch,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))} %for tag in c.changeset.tags: ${h.link_to(tag,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))} %endfor
${_('%s files affected with %s additions and %s deletions.') % (len(c.changeset.affected_files),c.lines_added,c.lines_deleted)}
%for change,filenode,diff,cs1,cs2,stat in c.changes:
%if change != 'removed': ${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=self.fid(filenode.changeset.raw_id,filenode.path)))} %else: ${h.link_to(h.safe_unicode(filenode.path),h.url.current(anchor=self.fid('',filenode.path)))} %endif
${h.fancy_file_stats(stat)}
%endfor % if c.cut_off: ${_('Changeset was too big and was cut off...')} % endif
%for change,filenode,diff,cs1,cs2,stat in c.changes: %if change !='removed':
${h.link_to_if(change!='removed',h.safe_unicode(filenode.path),h.url('files_home',repo_name=c.repo_name, revision=filenode.changeset.raw_id,f_path=h.safe_unicode(filenode.path)))} » ${h.link_to(_('diff'), h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='diff'))} » ${h.link_to(_('raw diff'), h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='raw'))} » ${h.link_to(_('download diff'), h.url('files_diff_home',repo_name=c.repo_name,f_path=h.safe_unicode(filenode.path),diff2=cs2,diff1=cs1,diff='download'))}
%if diff: ${diff|n} %else: ${_('No changes in this file')} %endif
%endif %endfor <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> ## template for inline comment form ${comment.comment_inline_form()}
${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})
%for path, lines in c.inline_comments: %endfor %for co in c.comments: ${comment.comment_block(co)} %endfor %if c.rhodecode_user.username != 'default':
${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id))} ${_('Leave a comment')}
${_('Comments parsed using')} RST ${_('syntax')}
${h.textarea('text')}
${h.submit('save', _('Comment'), class_='ui-button')}
${h.end_form()}
%endif