BigW Consortium Gitlab

index.html.haml 881 Bytes
Newer Older
1
- page_title 'Labels'
2 3 4 5
- if show_new_nav? && can?(current_user, :admin_label, @group)
  - content_for :breadcrumbs_extra do
    = link_to "New label", new_group_label_path(@group), class: "btn btn-new"

6
= render "groups/head_issues"
7

8

9 10
.top-area.adjust
  .nav-text
11
    Labels can be applied to issues and merge requests. Group labels are available for any project within the group.
12

13
  .nav-controls{ class: ("visible-xs" if show_new_nav?) }
14
    - if can?(current_user, :admin_label, @group)
15
      = link_to "New label", new_group_label_path(@group), class: "btn btn-new"
16 17

.labels
18
  .other-labels
19
    - if @labels.present?
20
      %ul.content-list.manage-labels-list.js-other-labels
21
        = render partial: 'shared/label', subject: @group, collection: @labels, as: :label
22 23 24 25
        = paginate @labels, theme: 'gitlab'
    - else
      .nothing-here-block
        No labels created yet.