BigW Consortium Gitlab

_issuables.html.haml 692 Bytes
Newer Older
Rubén Dávila committed
1 2 3 4 5 6 7 8
- 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
    - if show_counter
9
      .pull-right= issuables.size
Rubén Dávila committed
10

11
  - class_prefix = dom_class(issuables).pluralize
Rubén Dávila committed
12
  %ul{ class: "well-list #{class_prefix}-sortable-list", id: "#{class_prefix}-list-#{id}", "data-state" => id }
13 14 15 16
    = 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 }