BigW Consortium Gitlab

_issuables.html.haml 697 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.length)
Rubén Dávila committed
12

13
  - class_prefix = dom_class(issuables).pluralize
14
  %ul{ class: "well-list milestone-#{class_prefix}-list", id: "#{class_prefix}-list-#{id}" }
15
    = render partial: 'shared/milestones/issuable',
16
             collection: issuables,
17 18
             as: :issuable,
             locals: { show_project_name: show_project_name, show_full_project_name: show_full_project_name }