BigW Consortium Gitlab

_related_branches.html.haml 663 Bytes
Newer Older
1 2 3 4 5 6
- if @related_branches.any?
  %h2.related-branches-title
    = pluralize(@related_branches.count, 'Related Branch')
  %ul.unstyled-list
    - @related_branches.each do |branch|
      %li
7
        - target = @project.repository.find_branch(branch).target
8
        - pipeline = @project.pipeline_for(branch, target.sha) if target
9
        - if pipeline
10
          %span.related-branch-ci-status
11
            = render_pipeline_status(pipeline)
12 13
        %span.related-branch-info
          %strong
14
            = link_to namespace_project_compare_path(@project.namespace, @project, from: @project.default_branch, to: branch), class: "label-branch" do
15
              = branch