gitlab-org--gitlab-foss/app/views/search/results/_blob.html.haml

14 lines
446 B
Text
Raw Normal View History

2016-11-10 12:27:09 -05:00
- file_name, blob = blob
.blob-result
.file-holder
2017-02-05 17:28:48 -05:00
.js-file-title.file-title
2016-11-10 12:27:09 -05:00
- ref = @search_results.repository_ref
- blob_link = project_blob_path(@project, tree_join(ref, file_name))
2016-06-23 07:44:50 -04:00
= link_to blob_link do
2014-10-01 18:21:29 -04:00
%i.fa.fa-file
%strong
2016-11-10 12:27:09 -05:00
= file_name
- if blob
.file-content.code.term
= render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_link: blob_link