2018-01-19 16:40:18 -05:00
|
|
|
- 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-14 06:16:24 -04:00
|
|
|
%span.label-row
|
2016-06-06 10:40:35 -04:00
|
|
|
- if can?(current_user, :admin_label, @project)
|
2016-06-14 12:48:42 -04:00
|
|
|
.draggable-handler
|
|
|
|
= icon('bars')
|
2017-06-29 13:06:35 -04:00
|
|
|
.js-toggle-priority.toggle-priority{ data: { url: remove_priority_project_label_path(@project, label),
|
2016-09-19 23:09:57 -04:00
|
|
|
dom_id: dom_id(label), type: label.type } }
|
2017-06-27 06:46:01 -04:00
|
|
|
%button.add-priority.btn.has-tooltip{ title: 'Prioritize', type: 'button', :'data-placement' => 'top' }
|
2016-06-03 02:36:09 -04:00
|
|
|
= icon('star-o')
|
2017-06-27 06:46:01 -04:00
|
|
|
%button.remove-priority.btn.has-tooltip{ title: 'Remove priority', type: 'button', :'data-placement' => 'top' }
|
2016-06-03 02:36:09 -04:00
|
|
|
= icon('star')
|
2016-04-14 06:16:24 -04:00
|
|
|
%span.label-name
|
2016-09-26 18:58:36 -04:00
|
|
|
= link_to_label(label, subject: @project, tooltip: false)
|
2016-10-19 09:37:10 -04:00
|
|
|
- if defined?(@project) && @project.group.present?
|
|
|
|
%span.label-type
|
|
|
|
= label.model_name.human.titleize
|
2016-05-24 05:29:26 -04:00
|
|
|
- if label.description
|
|
|
|
%span.label-description
|
2016-10-06 18:01:42 -04:00
|
|
|
= markdown_field(label, :description)
|
2018-01-19 16:40:18 -05:00
|
|
|
.hidden-xs.hidden-sm
|
|
|
|
- if show_label_issues_link
|
|
|
|
= link_to_label(label, subject: subject) do
|
|
|
|
Issues
|
|
|
|
- if show_label_merge_requests_link
|
|
|
|
·
|
|
|
|
= link_to_label(label, subject: subject, type: :merge_request) do
|
|
|
|
Merge requests
|