##// END OF EJS Templates
artifacts: expose a special auth-token based artifacts download urls....
artifacts: expose a special auth-token based artifacts download urls. This will allow sharing download to external locations used new generated artifact download tokens. This feature allows also serving downloads using secret urls with all the fancy logic of our auth tokens.

File last commit:

r3968:2ec277c2 default
r4003:09f31efc default
Show More
search_path.mako
53 lines | 1.9 KiB | application/x-mako | MakoHtmlLexer
search: added narrow result links for global search.
r3467 <%namespace name="search" file="/search/search.mako"/>
dan
search: add support for elastic search 6...
r3319 % if c.formatted_results:
templating: use .mako as extensions for template files.
r1282 <table class="rctable search-results">
<tr>
<th>${_('Repository')}</th>
search: allow result sorting for elasticsearch6
r3963 <th>
dan
search: added per-backend sorting fields....
r3968 <a href="${search.field_sort('file')}">${_('File')}</a>
search: allow result sorting for elasticsearch6
r3963 </th>
<th>
<a href="${search.field_sort('size')}">${_('Size')}</a>
</th>
<th>
<a href="${search.field_sort('lines')}">${_('Lines')}</a>
</th>
templating: use .mako as extensions for template files.
r1282 </tr>
%for entry in c.formatted_results:
## search results are additionally filtered, and this check is just a safe gate
search: show all results for super-admin, and get repo type from index it if exists.
r3376 % if c.rhodecode_user.is_admin or h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(entry['repository'], 'search results path check'):
templating: use .mako as extensions for template files.
r1282 <tr class="body">
<td class="td-componentname">
search: show all results for super-admin, and get repo type from index it if exists.
r3376 <% repo_type = entry.get('repo_type') or h.get_repo_type_by_name(entry.get('repository')) %>
search: added narrow result links for global search.
r3467 ${search.repo_icon(repo_type)}
repo-summary: re-implemented summary view as pyramid....
r1785 ${h.link_to(entry['repository'], h.route_path('repo_summary',repo_name=entry['repository']))}
templating: use .mako as extensions for template files.
r1282 </td>
<td class="td-componentname">
search: allow result sorting for elasticsearch6
r3963 <i class="icon-file"></i>
templating: use .mako as extensions for template files.
r1282 ${h.link_to(h.literal(entry['f_path']),
files: ported repository files controllers to pyramid views.
r1927 h.route_path('repo_files',repo_name=entry['repository'],commit_id='tip',f_path=entry['f_path']))}
templating: use .mako as extensions for template files.
r1282 </td>
dan
search: in path search add lines/size information similar like in content matches since we have those information in ES.
r3322 <td>
%if entry.get('size'):
${h.format_byte_size_binary(entry['size'])}
%endif
</td>
<td>
%if entry.get('lines'):
search: allow result sorting for elasticsearch6
r3963 ${entry.get('lines', 0.)}
dan
search: in path search add lines/size information similar like in content matches since we have those information in ES.
r3322 %endif
</td>
templating: use .mako as extensions for template files.
r1282 </tr>
% endif
%endfor
</table>
dan
search: add support for elastic search 6...
r3319 %if c.cur_query:
templating: use .mako as extensions for template files.
r1282 <div class="pagination-wh pagination-left">
${c.formatted_results.pager('$link_previous ~2~ $link_next')}
</div>
dan
search: add support for elastic search 6...
r3319 %endif
% endif