Add deployment ID and gravatar to environments page
This commit is contained in:
parent
60a347228d
commit
0a15ad31ad
3 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue