2020-06-22 08:08:47 -04:00
|
|
|
- page_title _('Labels')
|
2018-04-25 06:56:54 -04:00
|
|
|
- can_admin_label = can?(current_user, :admin_label, @group)
|
2018-09-03 12:00:28 -04:00
|
|
|
- search = params[:search]
|
2018-09-27 10:19:28 -04:00
|
|
|
- subscribed = params[:subscribed]
|
|
|
|
- labels_or_filters = @labels.exists? || search.present? || subscribed.present?
|
2017-07-03 07:51:35 -04:00
|
|
|
|
2018-09-27 10:19:28 -04:00
|
|
|
- if labels_or_filters
|
2020-10-27 08:08:33 -04:00
|
|
|
#js-promote-label-modal
|
2019-09-03 05:03:35 -04:00
|
|
|
= render 'shared/labels/nav', labels_or_filters: labels_or_filters, can_admin_label: can_admin_label
|
2016-09-19 15:49:08 -04:00
|
|
|
|
2021-04-08 11:09:06 -04:00
|
|
|
.labels-container.gl-mt-2.gl-bg-gray-10.gl-border-solid.gl-border-1.gl-border-gray-100
|
2019-09-03 05:03:35 -04:00
|
|
|
- if @labels.any?
|
|
|
|
.text-muted
|
|
|
|
= _('Labels can be applied to %{features}. Group labels are available for any project within the group.') % { features: issuable_types.to_sentence }
|
|
|
|
.other-labels
|
|
|
|
%h5= _('Labels')
|
|
|
|
%ul.content-list.manage-labels-list.js-other-labels
|
|
|
|
= render partial: 'shared/label', collection: @labels, as: :label, locals: { use_label_priority: false, subject: @group }
|
|
|
|
= paginate @labels, theme: 'gitlab'
|
|
|
|
- elsif search.present?
|
|
|
|
.nothing-here-block
|
|
|
|
= _('No labels with such name or description')
|
|
|
|
- elsif subscribed.present?
|
|
|
|
.nothing-here-block
|
|
|
|
= _('You do not have any subscriptions yet')
|
2018-04-25 06:56:54 -04:00
|
|
|
- else
|
|
|
|
= render 'shared/empty_states/labels'
|
|
|
|
|
|
|
|
%template#js-badge-item-template
|
2020-09-30 23:09:55 -04:00
|
|
|
%li.js-priority-badge.inline.gl-ml-3
|
|
|
|
.label-badge.gl-bg-blue-50= _('Prioritized label')
|