summaryrefslogtreecommitdiff
path: root/app/views/search
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-06-11 20:02:26 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-06-11 20:33:40 +0800
commit41cfe904b7f3c3a981b83c17e3222d974e29d611 (patch)
treee4c2b71a666169dece3c1604493366768b4a53dc /app/views/search
parenta038083e39b76fb5c0426f6b7b170500aa94f2e6 (diff)
downloadgitlab-ce-41cfe904b7f3c3a981b83c17e3222d974e29d611.tar.gz
Hide project name if searching against a project
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/results/_commit.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/search/results/_commit.html.haml b/app/views/search/results/_commit.html.haml
index 89c15ee8fc2..ed5a3badf11 100644
--- a/app/views/search/results/_commit.html.haml
+++ b/app/views/search/results/_commit.html.haml
@@ -1 +1 @@
-= render 'projects/commits/commit', project: commit.project, commit: commit, ref: nil, show_project_name: true
+= render 'projects/commits/commit', project: commit.project, commit: commit, ref: nil, show_project_name: @project.nil?