2016-02-12 13:42:25 -05:00
|
|
|
- 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
|
2016-06-03 07:34:03 -04:00
|
|
|
- pipeline = @project.pipeline(sha, branch) if sha
|
2016-06-12 22:13:14 -04:00
|
|
|
- if pipeline
|
2016-02-12 13:42:25 -05:00
|
|
|
%span.related-branch-ci-status
|
2016-06-03 07:34:03 -04:00
|
|
|
= render_pipeline_status(pipeline)
|
2016-02-12 13:42:25 -05:00
|
|
|
%span.related-branch-info
|
|
|
|
%strong
|
2016-02-22 03:20:04 -05:00
|
|
|
= link_to namespace_project_compare_path(@project.namespace, @project, from: @project.default_branch, to: branch), class: "label-branch" do
|
2016-02-12 13:42:25 -05:00
|
|
|
= branch
|