diff options
author | barthc <mackintosh02@gmail.com> | 2016-06-14 18:57:50 +0100 |
---|---|---|
committer | barthc <mackintosh02@gmail.com> | 2016-06-14 18:57:50 +0100 |
commit | 519642af7720349f5aec19dc9b620bbb287cc526 (patch) | |
tree | 0d53359b401ebda9af86d08187d0a99ec5acecb0 /app/views/search/results/_blob.html.haml | |
parent | fe32942f8e4c89366d3a3c6c3ac7bcaea0e47edb (diff) | |
download | gitlab-ce-519642af7720349f5aec19dc9b620bbb287cc526.tar.gz |
fix clickable code search results
Diffstat (limited to 'app/views/search/results/_blob.html.haml')
-rw-r--r-- | app/views/search/results/_blob.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/search/results/_blob.html.haml b/app/views/search/results/_blob.html.haml index 0fe8a3b490a..b28482f5db1 100644 --- a/app/views/search/results/_blob.html.haml +++ b/app/views/search/results/_blob.html.haml @@ -2,9 +2,10 @@ .blob-result .file-holder .file-title - = link_to namespace_project_blob_path(@project.namespace, @project, tree_join(blob.ref, blob.filename), :anchor => "L" + blob.startline.to_s) do + - blob_path = namespace_project_blob_path(@project.namespace, @project, tree_join(blob.ref, blob.filename)) + = link_to blob_path do %i.fa.fa-file %strong = blob.filename .file-content.code.term - = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline + = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_path: blob_path |