Do not add location badge when creating a group or project

This commit is contained in:
Alfredo Sumaran 2016-04-05 17:29:40 -05:00
parent 779b9eac57
commit d2afeb8dde
1 changed files with 2 additions and 2 deletions

View File

@ -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?}"}