## -*- 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='commits')} <%def name="main()">

${_('Commit')}

${h.show_id(c.commit)} % if hasattr(c.commit, 'phase'): ${c.commit.phase} % endif ## obsolete commits % if hasattr(c.commit, 'obsolete'): % if c.commit.obsolete: ${_('obsolete')} % endif % endif ## hidden commits % if hasattr(c.commit, 'hidden'): % if c.commit.hidden: ${_('hidden')} % endif % endif

${_('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

${_('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

${_('Author')}

${self.gravatar_with_user(c.commit.author)}
- ${h.age_component(c.commit.date)}
<%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/> ${cbdiffs.render_diffset_menu(c.changes[c.commit.raw_id])} ${cbdiffs.render_diffset( c.changes[c.commit.raw_id], commit=c.commit, use_comments=True,inline_comments=c.inline_comments )}
## 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