gitlab-org--gitlab-foss/app/views/projects/environments/_environment.html.haml

30 lines
1.0 KiB
Plaintext
Raw Normal View History

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-13 14:00:51 +00:00
= link_to environment.name, namespace_project_environment_path(@project.namespace, @project, environment)
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
2016-06-10 22:15:53 +00:00
= link_to last_deployment.ref, namespace_project_commits_path(@project.namespace, @project, last_deployment.ref), class: "monospace"
2016-06-10 21:36:54 +00:00
·
= 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 22:15:53 +00:00
- if last_deployment
%p
#{time_ago_with_tooltip(last_deployment.created_at)}