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

23 lines
763 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "Labels"
2015-09-25 12:07:36 +05:30
= render "header_title"
.gray-content-block.top-block
- if can? current_user, :admin_label, @project
= link_to new_namespace_project_label_path(@project.namespace, @project), class: "pull-right btn btn-new" do
2015-12-23 02:04:40 +05:30
= icon('plus')
2015-09-25 12:07:36 +05:30
New label
.oneline
Labels can be applied to issues and merge requests.
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
.labels
- if @labels.present?
2015-09-25 12:07:36 +05:30
%ul.content-list.manage-labels-list
2015-04-26 12:48:37 +05:30
= render @labels
= paginate @labels, theme: 'gitlab'
- else
2015-11-26 14:37:03 +05:30
.nothing-here-block
2015-09-11 14:41:01 +05:30
- if can? current_user, :admin_label, @project
2015-11-26 14:37:03 +05:30
Create first label or #{link_to 'generate', generate_namespace_project_labels_path(@project.namespace, @project), method: :post} default set of labels
2015-09-11 14:41:01 +05:30
- else
2015-11-26 14:37:03 +05:30
No labels created