summaryrefslogtreecommitdiff
path: root/app/views/search/results
diff options
context:
space:
mode:
authorbarthc <mackintosh02@gmail.com>2016-06-23 12:44:50 +0100
committerbarthc <mackintosh02@gmail.com>2016-06-23 12:44:50 +0100
commit9b49c466f2ad5f54de441160e625a874220aea28 (patch)
tree69ed687dea7b14e72c46304529e05df144cb8633 /app/views/search/results
parent6f4498484390592c1f65d4e9f269b94678e227c6 (diff)
downloadgitlab-ce-9b49c466f2ad5f54de441160e625a874220aea28.tar.gz
renamed path to link
Diffstat (limited to 'app/views/search/results')
-rw-r--r--app/views/search/results/_blob.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/search/results/_blob.html.haml b/app/views/search/results/_blob.html.haml
index b28482f5db1..290743feb4a 100644
--- a/app/views/search/results/_blob.html.haml
+++ b/app/views/search/results/_blob.html.haml
@@ -2,10 +2,10 @@
.blob-result
.file-holder
.file-title
- - blob_path = namespace_project_blob_path(@project.namespace, @project, tree_join(blob.ref, blob.filename))
- = link_to blob_path do
+ - blob_link = namespace_project_blob_path(@project.namespace, @project, tree_join(blob.ref, blob.filename))
+ = link_to blob_link do
%i.fa.fa-file
%strong
= blob.filename
.file-content.code.term
- = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_path: blob_path
+ = render 'shared/file_highlight', blob: blob, first_line_number: blob.startline, blob_link: blob_link