gitlab-org--gitlab-foss/app/views/shared/milestones/_issuables.html.haml

19 lines
692 B
Text
Raw Normal View History

2016-02-24 14:05:28 -05:00
- show_counter = local_assigns.fetch(:show_counter, false)
- primary = local_assigns.fetch(:primary, false)
2018-04-17 17:23:07 -04:00
- panel_class = primary ? 'bg-primary text-white' : ''
2016-02-24 14:05:28 -05:00
2018-08-08 18:02:39 -04:00
.card
.card-header{ class: panel_class }
.title
= title
2016-02-24 14:05:28 -05:00
- if show_counter
.counter
2017-06-07 17:14:23 -04:00
= number_with_delimiter(issuables.length)
2016-02-24 14:05:28 -05:00
2016-03-06 23:07:19 -05:00
- class_prefix = dom_class(issuables).pluralize
%ul{ class: "content-list milestone-#{class_prefix}-list", id: "#{class_prefix}-list-#{id}" }
2016-03-06 23:07:19 -05:00
= render partial: 'shared/milestones/issuable',
2017-06-07 17:14:23 -04:00
collection: issuables,
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 }