From 3ead7ef586b488d07809f2676ddd5cf12ede4fee Mon Sep 17 00:00:00 2001 From: gotens1211 Date: Mon, 17 Apr 2017 17:40:23 +0530 Subject: [PATCH] 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 --- app/views/schedules/_schedule_item.html.haml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/views/schedules/_schedule_item.html.haml b/app/views/schedules/_schedule_item.html.haml index d475ec80..b6d8708e 100644 --- a/app/views/schedules/_schedule_item.html.haml +++ b/app/views/schedules/_schedule_item.html.haml @@ -9,11 +9,6 @@ = 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| = image_tag speaker.gravatar_url, :class => "img-circle pull-right speaker-pic", | :alt => speaker.name, |