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

27 lines
1.2 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- subject = local_assigns[:subject]
2018-11-08 19:23:39 +05:30
- force_priority = local_assigns.fetch(:force_priority, false)
2018-11-18 11:00:15 +05:30
- 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-03-17 18:26:18 +05:30
2018-11-08 19:23:39 +05:30
.label-name
2018-11-18 11:00:15 +05:30
- if defined?(@project)
= link_to_label(label, subject: @project, tooltip: false)
- else
= render_colored_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
= link_to_label(label, subject: subject) { '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
= link_to_label(label, subject: subject, type: :merge_request) { _('Merge requests') }
- if force_priority
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')