2018-11-08 19:23:39 +05:30
|
|
|
- force_priority = local_assigns.fetch(:force_priority, false)
|
2019-07-31 22:56:46 +05:30
|
|
|
- subject_or_group_defined = defined?(@project) || defined?(@group)
|
2019-10-12 21:52:04 +05:30
|
|
|
- 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-03-17 18:26:18 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.label-name
|
2019-07-31 22:56:46 +05:30
|
|
|
= render_label(label, tooltip: false)
|
2018-11-08 19:23:39 +05:30
|
|
|
.label-description
|
2020-07-28 23:09:34 +05:30
|
|
|
.label-description-wrapper
|
2018-03-17 18:26:18 +05:30
|
|
|
- if label.description.present?
|
2018-11-18 11:00:15 +05:30
|
|
|
.description-text
|
2018-03-17 18:26:18 +05:30
|
|
|
= markdown_field(label, :description)
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.label-links
|
2018-03-17 18:26:18 +05:30
|
|
|
- if show_label_issues_link
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.label-link-item.inline
|
2020-05-24 23:13:21 +05:30
|
|
|
= link_to_label(label) { _('Issues') }
|
2018-03-17 18:26:18 +05:30
|
|
|
- if show_label_merge_requests_link
|
|
|
|
·
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.label-link-item.inline
|
2019-07-31 22:56:46 +05:30
|
|
|
= link_to_label(label, type: :merge_request) { _('Merge requests') }
|
2018-11-08 19:23:39 +05:30
|
|
|
- if force_priority
|
2019-07-31 22:56:46 +05:30
|
|
|
·
|
2020-07-28 23:09:34 +05:30
|
|
|
%li.label-link-item.priority-badge.js-priority-badge.inline.gl-ml-3
|
2018-11-08 19:23:39 +05:30
|
|
|
.label-badge.label-badge-blue= _('Prioritized label')
|
2019-09-04 21:01:54 +05:30
|
|
|
= render_if_exists 'shared/label_row_epics_link', label: label
|