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)
|
|
|
|
- show_label_issues_link = subject_or_group_defined && show_label_issuables_link?(label, :issues, project: @project)
|
|
|
|
- show_label_merge_requests_link = subject_or_group_defined && show_label_issuables_link?(label, :merge_requests, project: @project)
|
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
|
|
|
|
.append-right-default.prepend-left-default
|
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
|
2019-07-31 22:56:46 +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
|
|
|
·
|
2018-11-18 11:00:15 +05:30
|
|
|
%li.label-link-item.priority-badge.js-priority-badge.inline.prepend-left-10
|
2018-11-08 19:23:39 +05:30
|
|
|
.label-badge.label-badge-blue= _('Prioritized label')
|