summaryrefslogtreecommitdiff
path: root/app/views/groups/labels/index.html.haml
blob: ac7e12fcd0ba350cac19bbb8a88c291947683cb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- page_title 'Labels'

- issuables = ['issues', 'merge requests']

.top-area.adjust
  .nav-text
    = _("Labels can be applied to %{features}. Group labels are available for any project within the group.") % { features: issuables.to_sentence }

  .nav-controls
    - if can?(current_user, :admin_label, @group)
      = link_to "New label", new_group_label_path(@group), class: "btn btn-new"

.labels
  .other-labels
    - if @labels.present?
      %ul.content-list.manage-labels-list.js-other-labels
        = render partial: 'shared/label', subject: @group, collection: @labels, as: :label
        = paginate @labels, theme: 'gitlab'
    - else
      .nothing-here-block
        = _("No labels created yet.")