2016-06-02 11:05:42 +05:30
|
|
|
- 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
|
2017-08-17 22:00:37 +05:30
|
|
|
.title
|
|
|
|
= title
|
2016-06-02 11:05:42 +05:30
|
|
|
- if show_counter
|
2017-08-17 22:00:37 +05:30
|
|
|
.counter
|
|
|
|
= number_with_delimiter(issuables.size)
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
- 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',
|
2017-08-17 22:00:37 +05:30
|
|
|
collection: issuables.order_position_asc,
|
2016-06-02 11:05:42 +05:30
|
|
|
as: :issuable,
|
|
|
|
locals: { show_project_name: show_project_name, show_full_project_name: show_full_project_name }
|