2018-01-19 16:40:18 -05:00
|
|
|
- subject = local_assigns[:subject]
|
2018-05-24 08:29:00 -04:00
|
|
|
- force_priority = local_assigns.fetch(:force_priority, false)
|
2018-08-07 06:56:17 -04:00
|
|
|
- show_label_issues_link = defined?(@project) && show_label_issuables_link?(label, :issues, project: @project)
|
|
|
|
- show_label_merge_requests_link = defined?(@project) && show_label_issuables_link?(label, :merge_requests, project: @project)
|
2018-01-19 16:40:18 -05:00
|
|
|
|
2018-04-18 22:02:38 -04:00
|
|
|
.label-name
|
2018-08-07 06:56:17 -04:00
|
|
|
- if defined?(@project)
|
|
|
|
= link_to_label(label, subject: @project, tooltip: false)
|
|
|
|
- else
|
|
|
|
= render_colored_label(label, tooltip: false)
|
2018-04-18 22:02:38 -04:00
|
|
|
.label-description
|
2018-06-05 05:47:43 -04:00
|
|
|
.append-right-default.prepend-left-default
|
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
|
|
|
|
= link_to_label(label, subject: subject) { '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
|
2018-05-16 22:03:09 -04:00
|
|
|
= link_to_label(label, subject: subject, type: :merge_request) { _('Merge requests') }
|
2018-05-24 08:29:00 -04:00
|
|
|
- if force_priority
|
2018-08-07 06:56:17 -04:00
|
|
|
%li.label-link-item.priority-badge.js-priority-badge.inline.prepend-left-10
|
2018-05-29 07:11:20 -04:00
|
|
|
.label-badge.label-badge-blue= _('Prioritized label')
|