Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_build_pipeline.html.haml « builds « ci « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 017d3ff6af2470c44396117641299153a695cbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- is_playable = subject.playable? && can?(current_user, :update_build, @project)
- if is_playable
  = link_to play_namespace_project_build_path(subject.project.namespace, subject.project, subject, return_to: request.original_url), method: :post, title: 'Play' do
    = render_status_with_link('build', 'play')
    .ci-status-text= subject.name
- elsif can?(current_user, :read_build, @project)
  = link_to namespace_project_build_path(subject.project.namespace, subject.project, subject) do
    %span.ci-status-icon
      = render_status_with_link('build', subject.status)
    .ci-status-text= subject.name
- else
  %span.ci-status-icon
    = render_status_with_link('build', subject.status)
  = ci_icon_for_status(subject.status)