gitlab-org--gitlab-foss/app/views/shared/_label_row.html.haml

26 lines
1.1 KiB
Text
Raw Normal View History

- force_priority = local_assigns.fetch(:force_priority, false)
- subject_or_group_defined = defined?(@project) || defined?(@group)
- 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
= render_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
- if label.description.present?
.description-text
= markdown_field(label, :description)
2018-04-18 19:09:44 -04:00
%ul.label-links
- if show_label_issues_link
2018-04-18 19:09:44 -04:00
%li.label-link-item.inline
= link_to_label(label) { 'Issues' }
- if show_label_merge_requests_link
·
2018-04-18 19:09:44 -04:00
%li.label-link-item.inline
= link_to_label(label, type: :merge_request) { _('Merge requests') }
- if force_priority
·
%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')
= render_if_exists 'shared/label_row_epics_link', label: label