gitlab-org--gitlab-foss/app/views/shared/milestones/_labels_tab.html.haml

15 lines
825 B
Text
Raw Normal View History

%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 }
%li.no-border
= render_label(label, tooltip: false, link: milestones_issues_path(options))
%span.prepend-description-left
= markdown_field(label, :description)
2018-04-09 17:31:30 -04:00
.float-right.d-none.d-lg-block.d-xl-block
= link_to milestones_issues_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_issues_path(options.merge(state: 'closed')), class: 'btn btn-transparent btn-action' do
- pluralize milestone_issues_by_label_count(@milestone, label, state: :closed), _('closed issue')