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

Add deployment ID and gravatar to environments page

parent 60a34722
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
%p.commit-title %p.commit-title
%span %span
- if commit_title = deployment.commit_title - 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" = link_to_gfm commit_title, namespace_project_commit_path(@project.namespace, @project, deployment.sha), class: "commit-row-message"
- else - else
Cant find HEAD commit for this branch Cant find HEAD commit for this branch
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
%td %td
= link_to environment.name, namespace_project_environment_path(@project.namespace, @project, environment) = 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 %td
- if last_deployment - if last_deployment
= render 'projects/deployments/commit', deployment: last_deployment = render 'projects/deployments/commit', deployment: last_deployment
...@@ -13,9 +18,7 @@ ...@@ -13,9 +18,7 @@
%td %td
- if last_deployment - if last_deployment
%p.finished-at #{time_ago_with_tooltip(last_deployment.created_at)}
= icon("calendar")
#{time_ago_with_tooltip(last_deployment.created_at, short_format: true, skip_js: true)}
%td %td
= render 'projects/deployments/actions', deployment: last_deployment = render 'projects/deployments/actions', deployment: last_deployment
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
%table.table.builds.environments %table.table.builds.environments
%tbody %tbody
%th Environment %th Environment
%th Deployment ID
%th Last deployment %th Last deployment
%th %th
%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