summaryrefslogtreecommitdiff
path: root/app/views/projects/labels/index.html.haml
blob: 05382b9cee77a8606f0bbf940138630419fb7020 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- page_title "Labels"
= render "header_title"

.top-area
  .nav-text
    Labels can be applied to issues and merge requests.
  .nav-controls
    - if can? current_user, :admin_label, @project
      = link_to new_namespace_project_label_path(@project.namespace, @project), class: "btn btn-new" do
        = icon('plus')
        New label

.labels
  - if @labels.present?
    %ul.content-list.manage-labels-list
      = render @labels
    = paginate @labels, theme: 'gitlab'
  - else
    .nothing-here-block
      - if can? current_user, :admin_label, @project
        Create a label or #{link_to 'generate a default set of labels', generate_namespace_project_labels_path(@project.namespace, @project), method: :post}.
      - else
        No labels created