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

_related_branches.html.haml « issues « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1a6edb288b5aa5d0f7553e0cf1d3460140a9d13d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- if @related_branches.any?
  - if @related_branches.any?
    = render Pajamas::CardComponent.new(card_options: { class: 'gl-new-card' }, header_options: { class: 'gl-new-card-header' } , body_options: { class: 'gl-new-card-body' }) do |c|
      - c.with_header do
        .gl-new-card-title-wrapper
          %h3.gl-new-card-title
            = link_to "", "#related-branches", class: "gl-link anchor position-absolute gl-text-decoration-none", "aria-hidden": true
            = _('Related branches')
          .gl-new-card-count
            = sprite_icon('branch', css_class: "gl-mr-2 gl-text-gray-500 gl-icon")
            = @related_branches.size
      - c.with_body do
        .gl-new-card-content
          %ul.related-merge-requests.content-list
            - @related_branches.each do |branch|
              %li.list-item{ class: "gl-py-0! gl-border-0!" }
                .item-body.gl-display-flex.align-items-center.gl-px-3.gl-pr-2.gl-mx-n2
                  .item-contents.gl-display-flex.gl-align-items-center.gl-flex-wrap.gl-flex-grow-1.gl-min-h-7
                    .item-title.gl-display-flex.mb-xl-0.gl-min-w-0.gl-align-items-center
                      - if branch[:pipeline_status].present?
                        %span.gl-mt-n2.gl-mb-n2.gl-mr-3
                          = render 'ci/status/icon', status: branch[:pipeline_status]
                      %span.related-branch-info
                        %strong
                          = link_to branch[:name], branch[:link], class: "ref-name"