gitlab-org--gitlab-foss/app/views/projects/deployments/_deployment.html.haml

35 lines
1.3 KiB
Text
Raw Normal View History

2016-06-10 17:36:54 -04:00
%tr.deployment
%td
2016-06-10 18:15:53 -04:00
%strong= "##{deployment.iid}"
2016-06-10 17:36:54 -04:00
%td
%div.branch-commit
- if deployment.ref
2016-06-10 18:15:53 -04:00
= link_to deployment.ref, namespace_project_commits_path(@project.namespace, @project, deployment.ref), class: "monospace"
2016-06-10 17:36:54 -04:00
·
= link_to deployment.short_sha, namespace_project_commit_path(@project.namespace, @project, deployment.sha), class: "commit-id monospace"
%p.commit-title
2016-06-10 17:36:54 -04:00
%span
- if commit_title = deployment.commit_title
= link_to_gfm commit_title, namespace_project_commit_path(@project.namespace, @project, deployment.sha), class: "commit-row-message"
- else
Cant find HEAD commit for this branch
%td
- if deployment.deployable
2016-06-10 18:15:53 -04:00
= link_to namespace_project_build_path(@project.namespace, @project, deployment.deployable), class: "monospace" do
2016-06-10 17:36:54 -04:00
= "#{deployment.deployable.name} (##{deployment.deployable.id})"
%td
2016-06-10 18:15:53 -04:00
#{time_ago_with_tooltip(deployment.created_at)}
2016-06-10 17:36:54 -04:00
%td
- if can?(current_user, :update_deployment, @project) && deployment.deployable
2016-06-10 18:15:53 -04:00
.pull-right
2016-06-14 08:47:00 -04:00
= 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