## -*- coding: utf-8 -*- <%inherit file="/base/base.mako"/> <%namespace name="diff_block" file="/changeset/diff_block.mako"/> <%def name="title()"> ${_('%s Commit') % c.repo_name} - ${h.show_id(c.commit)} %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif <%def name="menu_bar_nav()"> ${self.menu_items(active='repositories')} <%def name="menu_bar_subnav()"> ${self.repo_menu(active='changelog')} <%def name="main()">
${self.repo_page_title(c.rhodecode_db_repo)}
${_('Description')}:
${h.urlify_commit_message(c.commit.message,c.repo_name)}
%if c.statuses:
${_('Commit status')}:
[${h.commit_status_lbl(c.statuses[0])}]
%endif
${_('References')}:
%if c.commit.merge: ${_('merge')} %endif %if h.is_hg(c.rhodecode_repo): %for book in c.commit.bookmarks: ${h.shorter(book)} %endfor %endif %for tag in c.commit.tags: ${tag} %endfor %if c.commit.branch: ${h.shorter(c.commit.branch)} %endif
${_('Diff options')}:
${_('Raw Diff')} | ${_('Patch Diff')} | ${_('Download Diff')} | ${c.ignorews_url(request)} | ${c.context_url(request)}
${_('Comments')}:
%if c.comments: ${_ungettext("%d Commit comment", "%d Commit comments", len(c.comments)) % len(c.comments)}, %else: ${_ungettext("%d Commit comment", "%d Commit comments", len(c.comments)) % len(c.comments)} %endif %if c.inline_cnt: ${_ungettext("%d Inline Comment", "%d Inline Comments", c.inline_cnt) % c.inline_cnt} %else: ${_ungettext("%d Inline Comment", "%d Inline Comments", c.inline_cnt) % c.inline_cnt} %endif
${_('Unresolved TODOs')}:
% if c.unresolved_comments: % for co in c.unresolved_comments: ${'' if loop.last else ','} % endfor % else: ${_('There are no unresolved TODOs')} % endif
<%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/> ${cbdiffs.render_diffset_menu()} ${cbdiffs.render_diffset( c.changes[c.commit.raw_id], commit=c.commit, use_comments=True)}
## template for inline comment form <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/> ## render comments ${comment.generate_comments(c.comments)} ## main comment form and it status ${comment.comments(h.route_path('repo_commit_comment_create', repo_name=c.repo_name, commit_id=c.commit.raw_id), h.commit_status(c.rhodecode_db_repo, c.commit.raw_id))}
## FORM FOR MAKING JS ACTION AS CHANGESET COMMENTS