BigW Consortium Gitlab

_labels_tab.html.haml 904 Bytes
Newer Older
1 2
%ul.bordered-list.manage-labels-list
  - labels.each do |label|
3
    - options = { milestone_title: @milestone.title, label_name: label.title }
4

5
    %li.is-not-draggable
6
      %span.label-row
7 8 9 10
        %span.label-name
          = link_to milestones_label_path(options) do
            - render_colored_label(label, tooltip: false)
        %span.prepend-description-left
11
          = markdown_field(label, :description)
12

13 14 15 16 17
      .pull-right.hidden-xs.hidden-sm.hidden-md
        = 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'