2018-05-24 08:29:00 -04:00
|
|
|
- force_priority = local_assigns.fetch(:force_priority, false)
|
2019-04-18 11:51:56 -04:00
|
|
|
- subject_or_group_defined = defined?(@project) || defined?(@group)
|
2019-07-23 05:30:25 -04:00
|
|
|
- show_label_issues_link = subject_or_group_defined && show_label_issuables_link?(label, :issues)
|
|
|
|
- show_label_merge_requests_link = subject_or_group_defined && show_label_issuables_link?(label, :merge_requests)
|
2018-01-19 16:40:18 -05:00
|
|
|
|
2020-10-13 02:09:09 -04:00
|
|
|
.label-name.gl-flex-shrink-0.gl-mt-2.gl-mr-3
|
2019-04-18 11:51:56 -04:00
|
|
|
= render_label(label, tooltip: false)
|
2020-11-02 16:09:10 -05:00
|
|
|
.label-description.gl-overflow-hidden.gl-w-full
|
|
|
|
.gl-display-flex.gl-align-items-stretch.gl-flex-wrap.gl-mt-2
|
|
|
|
.gl-flex-basis-half.gl-flex-grow-1.gl-overflow-hidden.gl-mr-2
|
2020-10-13 02:09:09 -04:00
|
|
|
- if label.description.present?
|
|
|
|
= markdown_field(label, :description)
|
2020-10-15 14:08:43 -04:00
|
|
|
- elsif show_labels_full_path?(@project, @group)
|
2020-10-13 02:09:09 -04:00
|
|
|
= render 'shared/label_full_path', label: label
|
|
|
|
%ul.label-links.gl-m-0.gl-p-0.gl-white-space-nowrap
|
|
|
|
- if show_label_issues_link
|
|
|
|
%li.inline
|
|
|
|
= link_to_label(label, css_class: 'gl-text-blue-600!') { _('Issues') }
|
|
|
|
- if show_label_merge_requests_link
|
|
|
|
·
|
|
|
|
%li.inline
|
|
|
|
= link_to_label(label, type: :merge_request, css_class: 'gl-text-blue-600!') { _('Merge requests') }
|
|
|
|
= render_if_exists 'shared/label_row_epics_link', label: label
|
|
|
|
- if force_priority
|
|
|
|
·
|
|
|
|
%li.js-priority-badge.inline.gl-ml-3
|
|
|
|
.label-badge.gl-bg-blue-50= _('Prioritized label')
|
2020-10-15 14:08:43 -04:00
|
|
|
- if label.description.present? && show_labels_full_path?(@project, @group)
|
2020-10-13 02:09:09 -04:00
|
|
|
.gl-mt-3
|
|
|
|
= render 'shared/label_full_path', label: label
|