2015-04-30 13:06:18 -04:00
- page_title "Labels"
2014-07-30 06:27:29 -04:00
- if can? current_user, :admin_label, @project
2015-01-24 13:02:58 -05:00
= link_to new_namespace_project_label_path(@project.namespace, @project), class: "pull-right btn btn-new" do
2014-07-30 06:27:29 -04:00
New label
%h3.page-title
Labels
%hr
2014-09-01 05:09:07 -04:00
.labels
- if @labels.present?
%ul.bordered-list.manage-labels-list
= render @labels
= paginate @labels, theme: 'gitlab'
- else
.light-well
2015-01-24 13:02:58 -05:00
.nothing-here-block Create first label or #{link_to 'generate', generate_namespace_project_labels_path(@project.namespace, @project), method: :post} default set of labels