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
|
|
|
|
2018-04-18 22:02:38 -04:00
|
|
|
.label-name
|
2019-04-18 11:51:56 -04:00
|
|
|
= render_label(label, tooltip: false)
|
2018-04-18 22:02:38 -04:00
|
|
|
.label-description
|
2020-07-06 05:09:20 -04:00
|
|
|
.label-description-wrapper
|
2018-01-22 16:20:34 -05:00
|
|
|
- if label.description.present?
|
2018-08-07 06:56:17 -04:00
|
|
|
.description-text
|
2018-01-22 16:20:34 -05:00
|
|
|
= markdown_field(label, :description)
|
2018-04-18 19:09:44 -04:00
|
|
|
%ul.label-links
|
2018-01-22 16:20:34 -05:00
|
|
|
- if show_label_issues_link
|
2018-04-18 19:09:44 -04:00
|
|
|
%li.label-link-item.inline
|
2020-05-15 05:07:59 -04:00
|
|
|
= link_to_label(label) { _('Issues') }
|
2018-01-22 16:20:34 -05:00
|
|
|
- if show_label_merge_requests_link
|
|
|
|
·
|
2018-04-18 19:09:44 -04:00
|
|
|
%li.label-link-item.inline
|
2019-04-23 15:58:20 -04:00
|
|
|
= link_to_label(label, type: :merge_request) { _('Merge requests') }
|
2018-05-24 08:29:00 -04:00
|
|
|
- if force_priority
|
2019-04-18 11:51:56 -04:00
|
|
|
·
|
2020-07-17 05:09:43 -04:00
|
|
|
%li.label-link-item.priority-badge.js-priority-badge.inline.gl-ml-3
|
2018-05-29 07:11:20 -04:00
|
|
|
.label-badge.label-badge-blue= _('Prioritized label')
|
2019-05-21 13:53:47 -04:00
|
|
|
= render_if_exists 'shared/label_row_epics_link', label: label
|