## small box that displays changed/added/removed details fetched by AJAX <%namespace name="base" file="/base/base.mako"/> % if c.prev_page: ${_('load previous')} % endif ## to speed up lookups cache some functions before the loop <% active_patterns = h.get_active_pattern_entries(c.repo_name) urlify_commit_message = h.partial(h.urlify_commit_message, active_pattern_entries=active_patterns) %> % for cnt,commit in enumerate(c.pagination): ${h.checkbox(commit.raw_id,class_="commit-range", **{'data-commit-idx':commit.idx, 'data-commit-id': commit.raw_id})} ## %if c.statuses.get(commit.raw_id):
%if c.statuses.get(commit.raw_id)[2]:
%else:
%endif
%else:
%endif ${h.show_id(commit)} ## COMMIT PHASES ## Draft % if hasattr(commit, 'phase'): % if commit.phase != 'public': ${commit.phase[0].upper()} % endif % endif ## obsolete commits % if hasattr(commit, 'obsolete') and commit.obsolete: O % endif ## hidden commits % if hasattr(commit, 'hidden') and commit.hidden: H % endif  
${urlify_commit_message(commit.message, c.repo_name)}
${h.age_component(commit.date)} ${base.gravatar_with_user(commit.author)}
## merge %if commit.merge: ${_('merge')} %endif ## branch %if commit.branch: ${h.shorter(commit.branch)} %endif ## bookmarks %if h.is_hg(c.rhodecode_repo): %for book in commit.bookmarks: ${h.shorter(book)} %endfor %endif ## tags %for tag in commit.tags: ${h.shorter(tag)} %endfor
<% cs_comments = c.comments.get(commit.raw_id,[]) %> % if cs_comments: ${len(cs_comments)} % else: ${len(cs_comments)} % endif % endfor % if c.next_page: ${_('load next')} % endif