Only show confirmed speakers on registrations

This commit is contained in:
Henne Vogelsang 2014-12-10 15:31:21 +01:00
parent b65a33f047
commit eb817569a5

View file

@ -126,13 +126,13 @@
- @conference.participants.each do |participant| - @conference.participants.each do |participant|
= image_tag(participant.gravatar_url(size: '25'), title: "#{participant.name}!", class: 'img-circle') = image_tag(participant.gravatar_url(size: '25'), title: "#{participant.name}!", class: 'img-circle')
.col-md-4.col-md-offset-2 .col-md-4.col-md-offset-2
- if @conference.speakers.any? - if @conference.speakers.confirmed.any?
%h4 %h4
%span.fa-stack %span.fa-stack
%i.fa.fa-square-o.fa-stack-2x %i.fa.fa-square-o.fa-stack-2x
%i.fa.fa-microphone.fa-stack-1x %i.fa.fa-microphone.fa-stack-1x
= @conference.speakers.count = @conference.speakers.confirmed.count
Confirmed Confirmed
= word_pluralize(@conference.speakers.count, 'Speaker') = word_pluralize(@conference.speakers.confirmed.count, 'Speaker')
- @conference.speakers.each do |speaker| - @conference.speakers.confirmed.each do |speaker|
= image_tag(speaker.gravatar_url(size: '25'), title: "#{speaker.name}!", class: 'img-circle') = image_tag(speaker.gravatar_url(size: '25'), title: "#{speaker.name}!", class: 'img-circle')