Don't include speaker information if it's nil

This commit is contained in:
Sasi Olin 2022-04-16 15:04:27 +02:00 committed by GitHub
parent dbb7cc11f7
commit 7f1162ea35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,9 +11,11 @@
= link_to(conference_program_proposal_path(conference_id,
event),
class: 'thumbnail') do
= image_tag speaker.gravatar_url(size: 300),
class: ['img-responsive', 'img-circle'],
title: speaker.name
- unless speaker.nil?
= image_tag speaker.gravatar_url(size: 300),
class: ['img-responsive', 'img-circle'],
title: speaker.name
.caption
%h3.text-center= speaker.name
- unless speaker.nil?
%h3.text-center= speaker.name
%h4.text-center= event.title