BigW Consortium Gitlab

index.html.haml 675 Bytes
Newer Older
1
- page_title "Labels"
2
- if can? current_user, :admin_label, @project
Vinnie Okada committed
3
  = link_to new_namespace_project_label_path(@project.namespace, @project), class: "pull-right btn btn-new" do
4 5 6 7 8
    New label
%h3.page-title
  Labels
%hr

9 10 11 12 13 14 15
.labels
  - if @labels.present?
    %ul.bordered-list.manage-labels-list
      = render @labels
    = paginate @labels, theme: 'gitlab'
  - else
    .light-well
16 17 18 19
      - if can? current_user, :admin_label, @project
        .nothing-here-block Create first label or #{link_to 'generate', generate_namespace_project_labels_path(@project.namespace, @project), method: :post} default set of labels
      - else
        .nothing-here-block No labels created