2016-02-24 19:05:28 +00:00
|
|
|
- show_counter = local_assigns.fetch(:show_counter, false)
|
|
|
|
- primary = local_assigns.fetch(:primary, false)
|
2018-04-17 21:23:07 +00:00
|
|
|
- panel_class = primary ? 'bg-primary text-white' : ''
|
2016-02-24 19:05:28 +00:00
|
|
|
|
2018-08-08 22:02:39 +00:00
|
|
|
.card
|
|
|
|
.card-header{ class: panel_class }
|
2016-11-30 13:17:21 +00:00
|
|
|
.title
|
2016-12-19 15:25:46 +00:00
|
|
|
= title
|
2016-02-24 19:05:28 +00:00
|
|
|
- if show_counter
|
2016-11-30 13:17:21 +00:00
|
|
|
.counter
|
2017-06-07 21:14:23 +00:00
|
|
|
= number_with_delimiter(issuables.length)
|
2016-02-24 19:05:28 +00:00
|
|
|
|
2016-03-07 04:07:19 +00:00
|
|
|
- class_prefix = dom_class(issuables).pluralize
|
2018-05-29 15:08:35 +00:00
|
|
|
%ul{ class: "content-list milestone-#{class_prefix}-list", id: "#{class_prefix}-list-#{id}" }
|
2016-03-07 04:07:19 +00:00
|
|
|
= render partial: 'shared/milestones/issuable',
|
2017-06-07 21:14:23 +00:00
|
|
|
collection: issuables,
|
2016-03-07 04:07:19 +00:00
|
|
|
as: :issuable,
|
2020-09-18 18:10:26 +00:00
|
|
|
locals: { show_project_name: show_project_name }
|