2016-11-10 17:27:09 +00:00
|
|
|
- file_name, blob = blob
|
2013-11-06 07:58:43 +00:00
|
|
|
.blob-result
|
2013-07-13 06:52:47 +00:00
|
|
|
.file-holder
|
2017-02-05 22:28:48 +00:00
|
|
|
.js-file-title.file-title
|
2016-11-10 17:27:09 +00:00
|
|
|
- ref = @search_results.repository_ref
|
|
|
|
- blob_link = namespace_project_blob_path(@project.namespace, @project, tree_join(ref, file_name))
|
2016-06-23 11:44:50 +00:00
|
|
|
= link_to blob_link do
|
2014-10-01 22:21:29 +00:00
|
|
|
%i.fa.fa-file
|
2013-05-14 17:11:48 +00:00
|
|
|
%strong
|
2016-11-10 17:27:09 +00:00
|
|
|
= file_name
|
|
|
|
- if blob
|
|
|
|
.file-content.code.term
|
|
|
|
= render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_link: blob_link
|