gitlab-org--gitlab-foss/app/views/projects/issues/_related_branches.html.haml

15 lines
647 B
Plaintext
Raw Normal View History

2016-02-12 18:42:25 +00:00
- if @related_branches.any?
%h2.related-branches-title
= pluralize(@related_branches.count, 'Related Branch')
%ul.unstyled-list.related-merge-requests
2016-02-12 18:42:25 +00:00
- @related_branches.each do |branch|
%li
- target = @project.repository.find_branch(branch).dereferenced_target
- pipeline = @project.pipeline_for(branch, target.sha) if target
- if pipeline
2016-02-12 18:42:25 +00:00
%span.related-branch-ci-status
2016-06-03 11:34:03 +00:00
= render_pipeline_status(pipeline)
2016-02-12 18:42:25 +00:00
%span.related-branch-info
%strong
= link_to branch, project_compare_path(@project, from: @project.default_branch, to: branch), class: "ref-name"