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

View file

@ -1,6 +1,6 @@
- if controller.controller_path =~ /^groups/ - if controller.controller_path =~ /^groups/ && !@group.new_record?
- label = 'This group' - label = 'This group'
- if controller.controller_path =~ /^projects/ - if controller.controller_path =~ /^projects/ && !@project.new_record?
- label = 'This project' - label = 'This project'
.search.search-form{class: "#{'has-location-badge' if label.present?}"} .search.search-form{class: "#{'has-location-badge' if label.present?}"}