_deployment.html.haml 746 Bytes
Newer Older
1 2
%tr.deployment
  %td
Kamil Trzcinski's avatar
Kamil Trzcinski committed
3
    %strong= "##{deployment.iid}"
4 5

  %td
6
    = render 'projects/deployments/commit', deployment: deployment
7 8 9

  %td
    - if deployment.deployable
10
      = link_to namespace_project_build_path(@project.namespace, @project, deployment.deployable) do
11 12 13
        = "#{deployment.deployable.name} (##{deployment.deployable.id})"

  %td
Kamil Trzcinski's avatar
Kamil Trzcinski committed
14
    #{time_ago_with_tooltip(deployment.created_at)}
15 16

  %td
17
    - if can?(current_user, :update_deployment, deployment) && deployment.deployable
Kamil Trzcinski's avatar
Kamil Trzcinski committed
18
      .pull-right
19 20 21 22 23
        = link_to retry_namespace_project_build_path(@project.namespace, @project, deployment.deployable), method: :post, class: 'btn btn-build' do
          - if deployment.last?
            Retry
          - else
            Rollback