summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-04-05 17:29:40 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-04-05 17:29:40 -0500
commitd2afeb8dde7837688bdaaf8575d6621a8b42ba7f (patch)
tree382d0563d0c5dbe75c17119da77b459d9b4956a7
parent779b9eac57cf45d77e4d62aa1b96e06928daa794 (diff)
downloadgitlab-ce-issue_14952.tar.gz
Do not add location badge when creating a group or projectissue_14952
-rw-r--r--app/views/layouts/_search.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml
index 9d4ab9847a8..ce9df1566d5 100644
--- a/app/views/layouts/_search.html.haml
+++ b/app/views/layouts/_search.html.haml
@@ -1,6 +1,6 @@
-- if controller.controller_path =~ /^groups/
+- if controller.controller_path =~ /^groups/ && !@group.new_record?
- label = 'This group'
-- if controller.controller_path =~ /^projects/
+- if controller.controller_path =~ /^projects/ && !@project.new_record?
- label = 'This project'
.search.search-form{class: "#{'has-location-badge' if label.present?}"}