# HG changeset patch # User Daniel Dourvaris # Date 2018-12-19 19:28:58 # Node ID 186655dcfaff805a239d0fe769cace0cd5418a30 # Parent ffd2b28a32251ad94c0b00cff83847f7f9a1c83c search: in path search add lines/size information similar like in content matches since we have those information in ES. diff --git a/rhodecode/templates/search/search_path.mako b/rhodecode/templates/search/search_path.mako --- a/rhodecode/templates/search/search_path.mako +++ b/rhodecode/templates/search/search_path.mako @@ -4,7 +4,8 @@ ${_('Repository')} ${_('File')} - ##TODO: add 'Last Change' and 'Author' here + ${_('Size')} + ${_('Lines')} %for entry in c.formatted_results: ## search results are additionally filtered, and this check is just a safe gate @@ -24,6 +25,16 @@ ${h.link_to(h.literal(entry['f_path']), h.route_path('repo_files',repo_name=entry['repository'],commit_id='tip',f_path=entry['f_path']))} + + %if entry.get('size'): + ${h.format_byte_size_binary(entry['size'])} + %endif + + + %if entry.get('lines'): + ${entry.get('lines', 0.)} ${_ungettext('line', 'lines', entry.get('lines', 0.))} + %endif + % endif %endfor