<%namespace name="base" file="/base/base.mako"/> <%namespace name="search" file="/search/search.mako"/> % if c.formatted_results: %for entry in c.formatted_results: ## search results are additionally filtered, and this check is just a safe gate % if c.rhodecode_user.is_admin or h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(entry['repository'], 'search results commit check'): % endif %endfor
${_('Repository')} ${_('Commit')} ${_('Commit message')} ${_('Commit date')} ${_('Author')}
<% repo_type = entry.get('repo_type') or h.get_repo_type_by_name(entry.get('repository')) %> ${search.repo_icon(repo_type)} ${h.link_to(entry['repository'], h.route_path('repo_summary',repo_name=entry['repository']))} ${h.link_to(h._shorten_commit_id(entry['commit_id']), h.route_path('repo_commit',repo_name=entry['repository'],commit_id=entry['commit_id']))} %if entry.get('message_hl'): ${h.literal(entry['message_hl'])} %else: ${h.urlify_commit_message(entry['message'], entry['repository'])} %endif ${h.age_component(h.time_to_utcdatetime(entry['date']))} <% ## es6 stores this as object author = entry['author'] if isinstance(author, dict): author = author['email'] %> ${base.gravatar_with_user(author, tooltip=True)}
%if c.cur_query:
${c.formatted_results.render()}
%endif % endif