summaryrefslogtreecommitdiff
path: root/app/views/shared/_location_badge.html.haml
blob: dfe8bc010d6c0970d45b202d507470f5e2e9b9e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- if controller.controller_path =~ /^groups/
  - label = 'This group'
- if controller.controller_path =~ /^projects/
  - label = 'This project'

.search-location-badge
  - if label.present?
    %span.label.label-primary
      %i.location-text
        = label

      %a.remove-badge{href: '#'}
        x