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

31 lines
1.3 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- subject = local_assigns[:subject]
- show_label_issues_link = show_label_issuables_link?(label, :issues, project: @project)
- show_label_merge_requests_link = show_label_issuables_link?(label, :merge_requests, project: @project)
2016-04-02 18:10:28 +05:30
%span.label-row
- if can?(current_user, :admin_label, @project)
2016-06-22 15:30:34 +05:30
.draggable-handler
= icon('bars')
2017-09-10 17:25:29 +05:30
.js-toggle-priority.toggle-priority{ data: { url: remove_priority_project_label_path(@project, label),
2016-11-03 12:29:30 +05:30
dom_id: dom_id(label), type: label.type } }
2017-09-10 17:25:29 +05:30
%button.add-priority.btn.has-tooltip{ title: 'Prioritize', type: 'button', :'data-placement' => 'top' }
= icon('star-o')
2017-09-10 17:25:29 +05:30
%button.remove-priority.btn.has-tooltip{ title: 'Remove priority', type: 'button', :'data-placement' => 'top' }
= icon('star')
2016-06-02 11:05:42 +05:30
%span.label-name
2016-11-03 12:29:30 +05:30
= link_to_label(label, subject: @project, tooltip: false)
- if defined?(@project) && @project.group.present?
%span.label-type
= label.model_name.human.titleize
2018-03-17 18:26:18 +05:30
%span.label-description
- if label.description.present?
.description-text
= markdown_field(label, :description)
.hidden-xs.hidden-sm
- if show_label_issues_link
= link_to_label(label, subject: subject) { 'Issues' }
- if show_label_merge_requests_link
·
= link_to_label(label, subject: subject, type: :merge_request) { 'Merge requests' }