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
|
%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 @@
|
||||||
%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 @@
|
||||||
|
|
||||||
%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 @@
|
||||||
%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
|
||||||
|
|
Loading…
Reference in a new issue