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

14 lines
446 B
Plaintext
Raw Normal View History

2016-11-10 17:27:09 +00:00
- file_name, blob = blob
.blob-result
.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 = project_blob_path(@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
%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