From eb817569a55f20c7a059003af2453576c8d4b090 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Wed, 10 Dec 2014 15:31:21 +0100 Subject: [PATCH] Only show confirmed speakers on registrations --- app/views/conference_registrations/show.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/conference_registrations/show.html.haml b/app/views/conference_registrations/show.html.haml index 7fbf8793..724dd469 100644 --- a/app/views/conference_registrations/show.html.haml +++ b/app/views/conference_registrations/show.html.haml @@ -126,13 +126,13 @@ - @conference.participants.each do |participant| = image_tag(participant.gravatar_url(size: '25'), title: "#{participant.name}!", class: 'img-circle') .col-md-4.col-md-offset-2 - - if @conference.speakers.any? + - if @conference.speakers.confirmed.any? %h4 %span.fa-stack %i.fa.fa-square-o.fa-stack-2x %i.fa.fa-microphone.fa-stack-1x - = @conference.speakers.count + = @conference.speakers.confirmed.count Confirmed - = word_pluralize(@conference.speakers.count, 'Speaker') - - @conference.speakers.each do |speaker| + = word_pluralize(@conference.speakers.confirmed.count, 'Speaker') + - @conference.speakers.confirmed.each do |speaker| = image_tag(speaker.gravatar_url(size: '25'), title: "#{speaker.name}!", class: 'img-circle')