- 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 #js-promote-label-modal = render 'shared/labels/nav', labels_or_filters: labels_or_filters, can_admin_label: can_admin_label .labels-container.gl-mt-5 - if @labels.any? .text-muted.gl-mb-5 = labels_function_introduction .other-labels.gl-rounded-base.gl-border.gl-bg-gray-10 .gl-px-5.gl-py-4.gl-bg-white.gl-rounded-base.gl-border-b{ class: 'gl-rounded-bottom-left-none! gl-rounded-bottom-right-none!' } %h3.card-title.h5.gl-m-0.gl-relative.gl-line-height-24 = _('Labels') %ul.manage-labels-list.js-other-labels.gl-px-3.gl-rounded-base = 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.js-priority-badge.inline.gl-mr-3 .label-badge.gl-bg-blue-50= _('Prioritized')