summaryrefslogtreecommitdiff
path: root/app/views/search/results/_blob_data.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/search/results/_blob_data.html.haml')
-rw-r--r--app/views/search/results/_blob_data.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/search/results/_blob_data.html.haml b/app/views/search/results/_blob_data.html.haml
new file mode 100644
index 00000000000..143e9f91ca3
--- /dev/null
+++ b/app/views/search/results/_blob_data.html.haml
@@ -0,0 +1,10 @@
+.blob-result
+ .file-holder
+ .js-file-title.file-title
+ = link_to blob_link do
+ %i.fa.fa-file
+ %strong
+ = search_blob_title(project, file_name)
+ - if blob.data
+ .file-content.code.term
+ = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline