debian-mirror-gitlab/app/views/projects/issues/_related_branches.html.haml

16 lines
646 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
- 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
- pipeline = @project.pipeline(sha, branch) if sha
- if pipeline
2016-06-02 11:05:42 +05:30
%span.related-branch-ci-status
= render_pipeline_status(pipeline)
2016-06-02 11:05:42 +05:30
%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