debian-mirror-gitlab/app/views/shared/milestones/_issuables.html.haml

23 lines
876 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
- show_counter = local_assigns.fetch(:show_counter, false)
- primary = local_assigns.fetch(:primary, false)
2018-11-08 19:23:39 +05:30
- panel_class = primary ? 'bg-primary text-white' : ''
2016-06-02 11:05:42 +05:30
2018-11-20 20:47:30 +05:30
.card
.card-header{ class: panel_class }
2021-09-30 23:02:18 +05:30
.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
2016-06-02 11:05:42 +05:30
- class_prefix = dom_class(issuables).pluralize
2018-11-08 19:23:39 +05:30
%ul{ class: "content-list milestone-#{class_prefix}-list", id: "#{class_prefix}-list-#{id}" }
2016-06-02 11:05:42 +05:30
= render partial: 'shared/milestones/issuable',
2017-09-10 17:25:29 +05:30
collection: issuables,
2016-06-02 11:05:42 +05:30
as: :issuable,
2021-01-03 14:25:43 +05:30
locals: { show_project_name: show_project_name }