summaryrefslogtreecommitdiff
path: root/app/views/shared/milestones/_issuables.html.haml
blob: 8af3bd597c5a273b86c7d21870fb9f059ed3f56c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- show_counter = local_assigns.fetch(:show_counter, false)
- primary = local_assigns.fetch(:primary, false)
- panel_class = primary ? 'panel-primary' : 'panel-default'

.panel{ class: panel_class }
  .panel-heading
    .title
      = title
    - if show_counter
      .counter
        = number_with_delimiter(issuables.size)

  - class_prefix = dom_class(issuables).pluralize
  %ul{ class: "well-list #{class_prefix}-sortable-list", id: "#{class_prefix}-list-#{id}", "data-state" => id }
    = render partial: 'shared/milestones/issuable',
             collection: issuables.order_position_asc,
             as: :issuable,
             locals: { show_project_name: show_project_name, show_full_project_name: show_full_project_name }