Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_issuables.html.haml « milestones « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 460ddd0897ccf2215203c8626794940442b819ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- 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 }