Commit 0a15ad31 authored by Annabel Dunstone's avatar Annabel Dunstone

Add deployment ID and gravatar to environments page

parent 60a34722
......@@ -10,7 +10,7 @@
%p.commit-title
%span
- if commit_title = deployment.commit_title
= user_avatar(user: deployment.user, size: 20)
= author_avatar(deployment.commit, size: 20)
= 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
......@@ -4,6 +4,11 @@
%td
= link_to environment.name, namespace_project_environment_path(@project.namespace, @project, environment)
%td
- if last_deployment
= user_avatar(user: last_deployment.user, size: 20)
%span ##{last_deployment.id}
%td
- if last_deployment
= render 'projects/deployments/commit', deployment: last_deployment
......@@ -13,9 +18,7 @@
%td
- if last_deployment
%p.finished-at
= icon("calendar")
#{time_ago_with_tooltip(last_deployment.created_at, short_format: true, skip_js: true)}
#{time_ago_with_tooltip(last_deployment.created_at)}
%td
= render 'projects/deployments/actions', deployment: last_deployment
......@@ -26,6 +26,7 @@
%table.table.builds.environments
%tbody
%th Environment
%th Deployment ID
%th Last deployment
%th
%th
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment