2016-02-23 16:22:36 -05:00
|
|
|
%ul.bordered-list.manage-labels-list
|
|
|
|
- labels.each do |label|
|
2016-03-06 23:07:19 -05:00
|
|
|
- options = { milestone_title: @milestone.title, label_name: label.title }
|
2016-02-23 16:22:36 -05:00
|
|
|
|
2019-04-12 06:54:23 -04:00
|
|
|
%li.no-border
|
2016-03-06 23:07:19 -05:00
|
|
|
%span.label-row
|
2016-04-11 11:24:49 -04:00
|
|
|
%span.label-name
|
2020-01-29 16:09:22 -05:00
|
|
|
= render_label(label, tooltip: false, link: milestones_label_path(options))
|
2016-04-11 11:24:49 -04:00
|
|
|
%span.prepend-description-left
|
2016-10-06 18:01:42 -04:00
|
|
|
= markdown_field(label, :description)
|
2016-02-23 22:21:04 -05:00
|
|
|
|
2018-04-09 17:31:30 -04:00
|
|
|
.float-right.d-none.d-lg-block.d-xl-block
|
2020-01-29 16:09:22 -05:00
|
|
|
= link_to milestones_label_path(options.merge(state: 'opened')), class: 'btn btn-transparent btn-action' do
|
2017-05-05 10:42:01 -04:00
|
|
|
- pluralize milestone_issues_by_label_count(@milestone, label, state: :opened), 'open issue'
|
2020-01-29 16:09:22 -05:00
|
|
|
= link_to milestones_label_path(options.merge(state: 'closed')), class: 'btn btn-transparent btn-action' do
|
2017-05-05 10:42:01 -04:00
|
|
|
- pluralize milestone_issues_by_label_count(@milestone, label, state: :closed), 'closed issue'
|