debian-mirror-gitlab/app/views/shared/_label_row.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.3 KiB
Text
Raw Normal View History

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
2023-07-09 08:55:56 +05:30
.label-name.gl-flex-shrink-0.gl-mr-5
2019-07-31 22:56:46 +05:30
= render_label(label, tooltip: false)
2023-07-09 08:55:56 +05:30
- if show_labels_full_path?(@project, @group)
.gl-mt-2
= render 'shared/label_full_path', label: label
.label-description.gl-w-full
.gl-display-flex.gl-align-items-stretch.gl-flex-wrap
.gl-flex-basis-half.gl-flex-grow-1.gl-mr-5
2021-01-03 14:25:43 +05:30
- if label.description.present?
2023-07-09 08:55:56 +05:30
.gl-my-1
= markdown_field(label, :description)
2021-01-03 14:25:43 +05:30
%ul.label-links.gl-m-0.gl-p-0.gl-white-space-nowrap
2023-07-09 08:55:56 +05:30
- if force_priority
%li.js-priority-badge.inline.gl-mr-3.gl-mt-1
.label-badge.gl-bg-blue-50= _('Prioritized')
2018-03-17 18:26:18 +05:30
- if show_label_issues_link
2023-07-09 08:55:56 +05:30
%li.inline.gl-my-1
= link_to_label(label, css_class: 'gl-mr-5') { _('Issues') }
2018-03-17 18:26:18 +05:30
- if show_label_merge_requests_link
2023-07-09 08:55:56 +05:30
%li.inline.gl-my-1
= link_to_label(label, type: :merge_request) { _('Merge requests') }
2021-01-03 14:25:43 +05:30
= render_if_exists 'shared/label_row_epics_link', label: label