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

34 lines
1.4 KiB
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- page_title _('Labels')
2018-11-08 19:23:39 +05:30
- can_admin_label = can?(current_user, :admin_label, @group)
2018-11-20 20:47:30 +05:30
- search = params[:search]
2018-12-05 23:21:45 +05:30
- subscribed = params[:subscribed]
- labels_or_filters = @labels.exists? || search.present? || subscribed.present?
2018-03-27 19:54:05 +05:30
2018-12-05 23:21:45 +05:30
- if labels_or_filters
2021-01-29 00:20:46 +05:30
#js-promote-label-modal
2019-12-04 20:38:33 +05:30
= render 'shared/labels/nav', labels_or_filters: labels_or_filters, can_admin_label: can_admin_label
2016-11-03 12:29:30 +05:30
2022-07-23 23:45:48 +05:30
.labels-container.gl-mt-5
2019-12-04 20:38:33 +05:30
- if @labels.any?
2022-07-23 23:45:48 +05:30
.text-muted.gl-mb-5
2023-03-04 22:38:38 +05:30
= labels_function_introduction
2023-07-09 08:55:56 +05:30
.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
2019-12-04 20:38:33 +05:30
= 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-11-08 19:23:39 +05:30
- else
= render 'shared/empty_states/labels'
2016-11-03 12:29:30 +05:30
2018-11-08 19:23:39 +05:30
%template#js-badge-item-template
2023-07-09 08:55:56 +05:30
%li.js-priority-badge.inline.gl-mr-3
.label-badge.gl-bg-blue-50= _('Prioritized')