BigW Consortium Gitlab

Commit 0a15ad31 by 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
...@@ -6,6 +6,11 @@ ...@@ -6,6 +6,11 @@
%td %td
- if last_deployment - 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 = render 'projects/deployments/commit', deployment: last_deployment
- else - else
%p.commit-title %p.commit-title
...@@ -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