Adds verification beore showing user avatar

This commit is contained in:
Filipa Lacerda 2016-10-06 10:46:51 +01:00
parent 34efdef19e
commit c8c9ccbd19

View file

@ -9,8 +9,9 @@
- if deployment.deployable
= link_to [@project.namespace.becomes(Namespace), @project, deployment.deployable], class: 'build-link' do
= "#{deployment.deployable.name} (##{deployment.deployable.id})"
by
= user_avatar(user: deployment.user, size: 20)
- if deployment.user
by
= user_avatar(user: deployment.user, size: 20)
%td
#{time_ago_with_tooltip(deployment.created_at)}