## -*- coding: utf-8 -*- <%inherit file="/base/base.mako"/> <%namespace name="base" file="/base/base.mako"/> <%namespace name="diff_block" file="/changeset/diff_block.mako"/> <%namespace name="file_base" file="/files/base.mako"/> <%def name="title()"> ${_('{} Commit').format(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()">
<% rc_user = h.discover_user(c.commit.author_email) %>
${base.gravatar(c.commit.author_email, 30, tooltip=(True if rc_user else False), user=rc_user)}
${h.urlify_commit_message(h.chop_at_smart(c.commit.message, '\n', suffix_if_chopped='...'), c.repo_name)}
${h.link_to_user(rc_user or c.commit.author)} - ${h.age_component(c.commit.date)} ## second cell for consistency with files
${h.show_id(c.commit)} ${file_base.refs(c.commit)} ## phase % if hasattr(c.commit, 'phase') and getattr(c.commit, 'phase') != 'public': ${c.commit.phase} % endif ## obsolete commits % if getattr(c.commit, 'obsolete', False): ${_('obsolete')} % endif ## hidden commits % if getattr(c.commit, 'hidden', False): ${_('hidden')} % endif
%if c.statuses:
${h.commit_status_lbl(c.statuses[0])}
%endif
${_('Show More')}
<%namespace name="cbdiffs" file="/codeblocks/diffs.mako"/> ${cbdiffs.render_diffset_menu(c.changes[c.commit.raw_id], commit=c.commit)} ${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"/> ## comments heading with count
${_('Comments')} ${len(c.comments)}
## 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