Commit d2afeb8d authored by Alfredo Sumaran's avatar Alfredo Sumaran

Do not add location badge when creating a group or project

parent 779b9eac
- 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?}"}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment