BigW Consortium Gitlab

_issuables.html.haml 734 Bytes
Newer Older
Rubén Dávila committed
1 2 3 4 5
- 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 }
6 7
  .panel-heading
    .title
8
      = title
Rubén Dávila committed
9
    - if show_counter
10
      .counter
11
        = number_with_delimiter(issuables.size)
Rubén Dávila committed
12

13
  - class_prefix = dom_class(issuables).pluralize
Rubén Dávila committed
14
  %ul{ class: "well-list #{class_prefix}-sortable-list", id: "#{class_prefix}-list-#{id}", "data-state" => id }
15 16 17 18
    = render partial: 'shared/milestones/issuable',
             collection: issuables.sort_by(&:position),
             as: :issuable,
             locals: { show_project_name: show_project_name, show_full_project_name: show_full_project_name }