debian-mirror-gitlab/app/views/search/results/_blob.html.haml

14 lines
446 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- file_name, blob = blob
2014-09-02 18:07:02 +05:30
.blob-result
.file-holder
2017-08-17 22:00:37 +05:30
.js-file-title.file-title
- ref = @search_results.repository_ref
2017-09-10 17:25:29 +05:30
- blob_link = project_blob_path(@project, tree_join(ref, file_name))
2016-08-24 12:49:21 +05:30
= link_to blob_link do
2015-04-26 12:48:37 +05:30
%i.fa.fa-file
2014-09-02 18:07:02 +05:30
%strong
2017-08-17 22:00:37 +05:30
= file_name
- if blob
.file-content.code.term
= render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_link: blob_link