<%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"/> <%namespace name="sidebar" file="/base/sidebar.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) %>
<% email = h.email_or_none(c.commit.author) rc_user = h.discover_user(c.commit.author) %> ${base.gravatar(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
${_('parent')} ${_('child')} ${_('Browse files')}
${_('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, show_todos=False)}
## template for inline comment form <%namespace name="comment" file="/changeset/changeset_file_comment.mako"/> ## comments heading with count
${_('General 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))}
### NAV SIDEBAR ## FORM FOR MAKING JS ACTION AS CHANGESET COMMENTS