Do not add location badge when creating a group or project
This commit is contained in:
parent
779b9eac57
commit
d2afeb8dde
|
@ -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?}"}
|
||||
|
|
Loading…
Reference in New Issue