debian-mirror-gitlab/app/views/shared/milestones/_labels_tab.html.haml

18 lines
904 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
%ul.bordered-list.manage-labels-list
- labels.each do |label|
- options = { milestone_title: @milestone.title, label_name: label.title }
2017-08-17 22:00:37 +05:30
%li.is-not-draggable
2016-06-02 11:05:42 +05:30
%span.label-row
%span.label-name
2019-05-30 16:15:17 +05:30
= link_to milestones_label_path(options) do
- render_colored_label(label, tooltip: false)
2016-06-02 11:05:42 +05:30
%span.prepend-description-left
2016-11-03 12:29:30 +05:30
= markdown_field(label, :description)
2016-06-02 11:05:42 +05:30
2018-11-08 19:23:39 +05:30
.float-right.d-none.d-lg-block.d-xl-block
2017-08-17 22:00:37 +05:30
= link_to milestones_label_path(options.merge(state: 'opened')), class: 'btn btn-transparent btn-action' do
- pluralize milestone_issues_by_label_count(@milestone, label, state: :opened), 'open issue'
= link_to milestones_label_path(options.merge(state: 'closed')), class: 'btn btn-transparent btn-action' do
- pluralize milestone_issues_by_label_count(@milestone, label, state: :closed), 'closed issue'