2016-06-02 11:05:42 +05:30
|
|
|
- if @related_branches.any?
|
|
|
|
%h2.related-branches-title
|
|
|
|
= pluralize(@related_branches.count, 'Related Branch')
|
2016-09-29 09:46:39 +05:30
|
|
|
%ul.unstyled-list.related-merge-requests
|
2016-06-02 11:05:42 +05:30
|
|
|
- @related_branches.each do |branch|
|
|
|
|
%li
|
2016-11-24 13:41:30 +05:30
|
|
|
- target = @project.repository.find_branch(branch).dereferenced_target
|
2016-09-29 09:46:39 +05:30
|
|
|
- pipeline = @project.pipeline_for(branch, target.sha) if target
|
2019-02-13 22:33:31 +05:30
|
|
|
- if can?(current_user, :read_pipeline, pipeline)
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.related-branch-ci-status
|
2016-06-16 23:09:34 +05:30
|
|
|
= render_pipeline_status(pipeline)
|
2016-06-02 11:05:42 +05:30
|
|
|
%span.related-branch-info
|
|
|
|
%strong
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to branch, project_compare_path(@project, from: @project.default_branch, to: branch), class: "ref-name"
|