2016-06-10 21:36:54 +00:00
|
|
|
- last_deployment = environment.last_deployment
|
2016-04-29 13:14:38 +00:00
|
|
|
|
2016-06-10 21:36:54 +00:00
|
|
|
%tr.environment
|
2016-04-29 13:14:38 +00:00
|
|
|
%td
|
|
|
|
%strong
|
2016-06-10 21:36:54 +00:00
|
|
|
= link_to environment.name, namespace_project_environment_path(@project.namespace, @project, environment), class: "monospace"
|
2016-04-29 13:14:38 +00:00
|
|
|
|
|
|
|
%td
|
2016-06-10 21:36:54 +00:00
|
|
|
- if last_deployment
|
|
|
|
%div.branch-commit
|
|
|
|
- if last_deployment.ref
|
|
|
|
= link_to last.ref, namespace_project_commits_path(@project.namespace, @project, last_deployment.ref), class: "monospace"
|
|
|
|
·
|
|
|
|
= link_to last_deployment.short_sha, namespace_project_commit_path(@project.namespace, @project, last_deployment.sha), class: "commit-id monospace"
|
2016-04-29 13:14:38 +00:00
|
|
|
|
2016-06-10 21:36:54 +00:00
|
|
|
%p
|
|
|
|
%span
|
|
|
|
- if commit_title = last_deployment.commit_title
|
|
|
|
= link_to_gfm commit_title, namespace_project_commit_path(@project.namespace, @project, last_deployment.sha), class: "commit-row-message"
|
|
|
|
- else
|
|
|
|
Cant find HEAD commit for this branch
|
|
|
|
- else
|
2016-04-29 13:14:38 +00:00
|
|
|
%p
|
2016-06-10 21:36:54 +00:00
|
|
|
No deployments yet
|
2016-04-29 13:14:38 +00:00
|
|
|
|
|
|
|
%td
|
2016-06-10 21:36:54 +00:00
|
|
|
%p
|
|
|
|
%i.fa.fa-calendar
|
|
|
|
|
|
|
|
#{time_ago_with_tooltip(last_deployment.created_at)}
|
2016-04-29 13:14:38 +00:00
|
|
|
|
|
|
|
%td
|