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

22 lines
710 B
Text
Raw Normal View History

2016-11-03 12:29:30 +05:30
- page_title 'Labels'
2017-09-10 17:25:29 +05:30
2018-03-27 19:54:05 +05:30
- issuables = ['issues', 'merge requests']
2016-11-03 12:29:30 +05:30
.top-area.adjust
.nav-text
2018-03-27 19:54:05 +05:30
= _("Labels can be applied to %{features}. Group labels are available for any project within the group.") % { features: issuables.to_sentence }
2016-11-03 12:29:30 +05:30
2018-03-17 18:26:18 +05:30
.nav-controls
2016-11-03 12:29:30 +05:30
- if can?(current_user, :admin_label, @group)
2017-09-10 17:25:29 +05:30
= link_to "New label", new_group_label_path(@group), class: "btn btn-new"
2016-11-03 12:29:30 +05:30
.labels
.other-labels
- if @labels.present?
%ul.content-list.manage-labels-list.js-other-labels
2016-11-24 13:41:30 +05:30
= render partial: 'shared/label', subject: @group, collection: @labels, as: :label
2016-11-03 12:29:30 +05:30
= paginate @labels, theme: 'gitlab'
- else
.nothing-here-block
2018-03-27 19:54:05 +05:30
= _("No labels created yet.")