From 9b49c466f2ad5f54de441160e625a874220aea28 Mon Sep 17 00:00:00 2001 From: barthc Date: Thu, 23 Jun 2016 12:44:50 +0100 Subject: renamed path to link --- app/views/search/results/_blob.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/search') 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 -- cgit v1.2.1