summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/_related_branches.html.haml
blob: bdfa0c7009eecab628777abcccc44cd67bc34cbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- if @related_branches.any?
  %h2.related-branches-title
    = pluralize(@related_branches.count, 'Related Branch')
  %ul.unstyled-list
    - @related_branches.each do |branch|
      %li
        - sha = @project.repository.find_branch(branch).target
        - ci_commit = @project.ci_commit(sha, branch) if sha
        - if ci_commit
          %span.related-branch-ci-status
            = render_ci_status(ci_commit)
        %span.related-branch-info
          %strong
            = link_to namespace_project_compare_path(@project.namespace, @project, from: @project.default_branch, to: branch), class: "label-branch" do
              = branch