2016-02-24 14:05:28 -05:00
|
|
|
- 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 }
|
2016-11-30 08:17:21 -05:00
|
|
|
.panel-heading
|
|
|
|
.title
|
2016-12-19 10:25:46 -05:00
|
|
|
= title
|
2016-02-24 14:05:28 -05:00
|
|
|
- if show_counter
|
2016-11-30 08:17:21 -05:00
|
|
|
.counter
|
2017-01-18 12:08:09 -05:00
|
|
|
= number_with_delimiter(issuables.size)
|
2016-02-24 14:05:28 -05:00
|
|
|
|
2016-03-06 23:07:19 -05:00
|
|
|
- class_prefix = dom_class(issuables).pluralize
|
2016-02-24 14:05:28 -05:00
|
|
|
%ul{ class: "well-list #{class_prefix}-sortable-list", id: "#{class_prefix}-list-#{id}", "data-state" => id }
|
2016-03-06 23:07:19 -05:00
|
|
|
= render partial: 'shared/milestones/issuable',
|
2017-03-09 13:43:07 -05:00
|
|
|
collection: issuables.order_position_asc,
|
2016-03-06 23:07:19 -05:00
|
|
|
as: :issuable,
|
|
|
|
locals: { show_project_name: show_project_name, show_full_project_name: show_full_project_name }
|