Adds Build column to environments list

This commit is contained in:
Filipa Lacerda 2016-10-05 11:48:07 +01:00
parent 2f01392d22
commit 5e1c986b7d
3 changed files with 7 additions and 0 deletions

View file

@ -26,6 +26,7 @@
} }
} }
.build-link,
.branch-name { .branch-name {
color: $gl-dark-link-color; color: $gl-dark-link-color;
} }

View file

@ -9,6 +9,11 @@
%span ##{last_deployment.iid} by %span ##{last_deployment.iid} by
= user_avatar(user: last_deployment.user, size: 20) = user_avatar(user: last_deployment.user, size: 20)
%td
- if last_deployment && last_deployment.deployable
= link_to [@project.namespace.becomes(Namespace), @project, last_deployment.deployable], class: 'build-link' do
= "#{last_deployment.deployable.name} (##{last_deployment.deployable.id})"
%td %td
- if last_deployment - if last_deployment
= render 'projects/deployments/commit', deployment: last_deployment = render 'projects/deployments/commit', deployment: last_deployment

View file

@ -27,6 +27,7 @@
%tbody %tbody
%th Environment %th Environment
%th Last Deployment %th Last Deployment
%th Build
%th Commit %th Commit
%th %th
%th %th