Do not add location badge when creating a group or project
This commit is contained in:
parent
779b9eac57
commit
d2afeb8dde
1 changed files with 2 additions and 2 deletions
|
@ -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?}"}
|
||||||
|
|
Loading…
Reference in a new issue