debian-mirror-gitlab/app/views/projects/labels/index.html.haml

16 lines
539 B
Text
Raw Normal View History

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