2015-09-11 14:41:01 +05:30
|
|
|
- page_title "Labels"
|
2015-09-25 12:07:36 +05:30
|
|
|
= render "header_title"
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
.top-area
|
|
|
|
.nav-text
|
2015-09-25 12:07:36 +05:30
|
|
|
Labels can be applied to issues and merge requests.
|
2016-04-02 18:10:28 +05:30
|
|
|
.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
|
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
|