Show More
@@ -4,7 +4,8 b'' | |||
|
4 | 4 | <tr> |
|
5 | 5 | <th>${_('Repository')}</th> |
|
6 | 6 | <th>${_('File')}</th> |
|
7 | ##TODO: add 'Last Change' and 'Author' here | |
|
7 | <th>${_('Size')}</th> | |
|
8 | <th>${_('Lines')}</th> | |
|
8 | 9 | </tr> |
|
9 | 10 | %for entry in c.formatted_results: |
|
10 | 11 | ## search results are additionally filtered, and this check is just a safe gate |
@@ -24,6 +25,16 b'' | |||
|
24 | 25 | ${h.link_to(h.literal(entry['f_path']), |
|
25 | 26 | h.route_path('repo_files',repo_name=entry['repository'],commit_id='tip',f_path=entry['f_path']))} |
|
26 | 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 | 38 | </tr> |
|
28 | 39 | % endif |
|
29 | 40 | %endfor |
General Comments 0
You need to be logged in to leave comments.
Login now