summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-06-09 01:43:23 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-06-11 20:33:40 +0800
commita038083e39b76fb5c0426f6b7b170500aa94f2e6 (patch)
tree992074a9cb0815c3f43185ddafe47b73c8faa8ee
parenta20d3ff2b004e8ab62c037d1a7b9018dcb402913 (diff)
downloadgitlab-ce-a038083e39b76fb5c0426f6b7b170500aa94f2e6.tar.gz
Unify app/views/search/results by using EE
-rw-r--r--app/views/search/results/_blob_data.html.haml3
-rw-r--r--app/views/search/results/_commit.html.haml2
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/search/results/_blob_data.html.haml b/app/views/search/results/_blob_data.html.haml
index 0115be41ff1..143e9f91ca3 100644
--- a/app/views/search/results/_blob_data.html.haml
+++ b/app/views/search/results/_blob_data.html.haml
@@ -3,7 +3,8 @@
.js-file-title.file-title
= link_to blob_link do
%i.fa.fa-file
- = search_blob_title(project, file_name)
+ %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
diff --git a/app/views/search/results/_commit.html.haml b/app/views/search/results/_commit.html.haml
index f34eaf89027..89c15ee8fc2 100644
--- a/app/views/search/results/_commit.html.haml
+++ b/app/views/search/results/_commit.html.haml
@@ -1 +1 @@
-= render 'projects/commits/commit', project: @project, commit: commit, ref: nil
+= render 'projects/commits/commit', project: commit.project, commit: commit, ref: nil, show_project_name: true