2016-02-12 13:42:25 -05:00
|
|
|
- if @related_branches.any?
|
|
|
|
%h2.related-branches-title
|
|
|
|
= pluralize(@related_branches.count, 'Related Branch')
|
2016-09-09 10:00:21 -04:00
|
|
|
%ul.unstyled-list.related-merge-requests
|
2016-02-12 13:42:25 -05:00
|
|
|
- @related_branches.each do |branch|
|
|
|
|
%li
|
2016-09-26 23:07:31 -04:00
|
|
|
- target = @project.repository.find_branch(branch).dereferenced_target
|
2016-08-11 05:26:04 -04:00
|
|
|
- pipeline = @project.pipeline_for(branch, target.sha) if target
|
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
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to branch, project_compare_path(@project, from: @project.default_branch, to: branch), class: "ref-name"
|