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

19 lines
644 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 }
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
2017-09-10 17:25:29 +05:30
= number_with_delimiter(issuables.length)
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 }