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

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

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