2016-11-10 12:27:09 -05:00
|
|
|
- file_name, blob = blob
|
2013-11-06 02:58:43 -05:00
|
|
|
.blob-result
|
2013-07-13 02:52:47 -04:00
|
|
|
.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
|
2017-06-29 13:06:35 -04:00
|
|
|
- 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
|
2013-05-14 13:11:48 -04:00
|
|
|
%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
|