22 lines
876 B
Text
22 lines
876 B
Text
- show_counter = local_assigns.fetch(:show_counter, false)
|
|
- primary = local_assigns.fetch(:primary, false)
|
|
- panel_class = primary ? 'bg-primary text-white' : ''
|
|
|
|
.card
|
|
.card-header{ class: panel_class }
|
|
.header.gl-mb-2
|
|
.title
|
|
= title
|
|
.issuable-count-weight.gl-ml-3
|
|
- if show_counter
|
|
%span.counter
|
|
= sprite_icon('issues', css_class: 'gl-vertical-align-text-bottom')
|
|
= number_with_delimiter(issuables.length)
|
|
= render_if_exists "shared/milestones/issuables_weight", issuables: issuables
|
|
|
|
- class_prefix = dom_class(issuables).pluralize
|
|
%ul{ class: "content-list milestone-#{class_prefix}-list", id: "#{class_prefix}-list-#{id}" }
|
|
= render partial: 'shared/milestones/issuable',
|
|
collection: issuables,
|
|
as: :issuable,
|
|
locals: { show_project_name: show_project_name }
|