##// END OF EJS Templates
search: in path search add lines/size information similar like in content matches since we have those information in ES.
dan -
r3322:186655dc default
parent child Browse files
Show More
@@ -4,7 +4,8 b''
4 <tr>
4 <tr>
5 <th>${_('Repository')}</th>
5 <th>${_('Repository')}</th>
6 <th>${_('File')}</th>
6 <th>${_('File')}</th>
7 ##TODO: add 'Last Change' and 'Author' here
7 <th>${_('Size')}</th>
8 <th>${_('Lines')}</th>
8 </tr>
9 </tr>
9 %for entry in c.formatted_results:
10 %for entry in c.formatted_results:
10 ## search results are additionally filtered, and this check is just a safe gate
11 ## search results are additionally filtered, and this check is just a safe gate
@@ -24,6 +25,16 b''
24 ${h.link_to(h.literal(entry['f_path']),
25 ${h.link_to(h.literal(entry['f_path']),
25 h.route_path('repo_files',repo_name=entry['repository'],commit_id='tip',f_path=entry['f_path']))}
26 h.route_path('repo_files',repo_name=entry['repository'],commit_id='tip',f_path=entry['f_path']))}
26 </td>
27 </td>
28 <td>
29 %if entry.get('size'):
30 ${h.format_byte_size_binary(entry['size'])}
31 %endif
32 </td>
33 <td>
34 %if entry.get('lines'):
35 ${entry.get('lines', 0.)} ${_ungettext('line', 'lines', entry.get('lines', 0.))}
36 %endif
37 </td>
27 </tr>
38 </tr>
28 % endif
39 % endif
29 %endfor
40 %endfor
General Comments 0
You need to be logged in to leave comments. Login now