## -*- coding: utf-8 -*- <%inherit file="/base/base.html"/> <%namespace name="diff_block" file="/changeset/diff_block.html"/> <%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)}

${_('Commit')} ${h.show_id(c.commit)}

${_('Parent')} | ${_('Child')}
${_('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.GET)} | ${c.context_url(request.GET)}
${_('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
<%namespace name="cbdiffs" file="/codeblocks/diffs.html"/> ${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.html"/> ## render comments ${comment.generate_comments()} ## main comment form and it status ${comment.comments(h.url('changeset_comment', repo_name=c.repo_name, revision=c.commit.raw_id), h.commit_status(c.rhodecode_db_repo, c.commit.raw_id))}
## FORM FOR MAKING JS ACTION AS CHANGESET COMMENTS