Removed the extra condition for displaying the first speaker image

Removed the if statement in schedule_item.html.haml file which was generating an extra img_tag for the first speaker

Fixes #1454
This commit is contained in:
gotens1211 2017-04-17 17:40:23 +05:30
parent c97a774579
commit 3ead7ef586

View file

@ -9,11 +9,6 @@
= event.title = event.title
- if speaker = event.speakers.first
= image_tag speaker.gravatar_url, class: "img-circle pull-right speaker-pic", |
alt: speaker.name, |
title: speaker.name, |
style: "height: #{ speaker_height(@rooms) }px; width: #{ speaker_width(@rooms) }px;"
- event.speakers_ordered.each do |speaker| - event.speakers_ordered.each do |speaker|
= image_tag speaker.gravatar_url, :class => "img-circle pull-right speaker-pic", | = image_tag speaker.gravatar_url, :class => "img-circle pull-right speaker-pic", |
:alt => speaker.name, | :alt => speaker.name, |