debian-mirror-gitlab/app/views/projects/ci/builds/_build_pipeline.html.haml

15 lines
955 B
Text
Raw Normal View History

2016-09-13 17:45:13 +05:30
- is_playable = subject.playable? && can?(current_user, :update_build, @project)
2016-09-29 09:46:39 +05:30
- if is_playable
2016-11-03 12:29:30 +05:30
= link_to play_namespace_project_build_path(subject.project.namespace, subject.project, subject, return_to: request.original_url), method: :post, data: { toggle: 'tooltip', title: "#{subject.name} - play", container: '.pipeline-graph', placement: 'bottom' } do
2016-09-29 09:46:39 +05:30
= render_status_with_link('build', 'play')
.ci-status-text= subject.name
- elsif can?(current_user, :read_build, @project)
2016-11-03 12:29:30 +05:30
= link_to namespace_project_build_path(subject.project.namespace, subject.project, subject), data: { toggle: 'tooltip', title: "#{subject.name} - #{subject.status}", container: '.pipeline-graph', placement: 'bottom' } do
%span.ci-status-icon
= render_status_with_link('build', subject.status)
2016-09-29 09:46:39 +05:30
.ci-status-text= subject.name
- else
2016-11-03 12:29:30 +05:30
%span.ci-status-icon
= render_status_with_link('build', subject.status)
2016-09-29 09:46:39 +05:30
= ci_icon_for_status(subject.status)