4f2005df1d
Add Epics in issuable list when EE See merge request gitlab-org/gitlab-ce!27545
33 lines
1.4 KiB
Text
33 lines
1.4 KiB
Text
- @no_container = true
|
|
- page_title 'Labels'
|
|
- can_admin_label = can?(current_user, :admin_label, @group)
|
|
- search = params[:search]
|
|
- subscribed = params[:subscribed]
|
|
- labels_or_filters = @labels.exists? || search.present? || subscribed.present?
|
|
|
|
- if labels_or_filters
|
|
#promote-label-modal
|
|
%div{ class: container_class }
|
|
= render 'shared/labels/nav', labels_or_filters: labels_or_filters, can_admin_label: can_admin_label
|
|
|
|
.labels-container.prepend-top-5
|
|
- 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')
|
|
- else
|
|
= render 'shared/empty_states/labels'
|
|
|
|
%template#js-badge-item-template
|
|
%li.label-link-item.js-priority-badge.inline.prepend-left-10
|
|
.label-badge.label-badge-blue= _('Prioritized label')
|