Keynote Speakers implemented
This commit is contained in:
parent
1106f4e227
commit
67ea900dc3
4 changed files with 22 additions and 1 deletions
11
app/views/conference/_keynote_speakers.html.haml
Normal file
11
app/views/conference/_keynote_speakers.html.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
%div.row.text-center
|
||||
%div.col-md-12
|
||||
%h3 Keynote Speakers
|
||||
- @keynote_speakers.each do |k|
|
||||
%div{ class: (@keynote_speakers.count.to_i <= 2 ? "col-md-#{12/@keynote_speakers.count.to_i}" : "col-md-4") }
|
||||
= image_tag(k.gravatar_url(size: '80'), class: 'img-circle') unless k.gravatar_url.blank?
|
||||
%h4
|
||||
= k.name
|
||||
-unless k.biography.blank?
|
||||
%p
|
||||
= k.biography
|
||||
|
|
@ -12,6 +12,10 @@
|
|||
= link_to 'Schedule', conference_schedule_path(@conference.short_title), target: '_blank'
|
||||
- else
|
||||
%span The schedule is not ready yet. Stay tuned!
|
||||
|
||||
- unless @keynote_speakers.blank?
|
||||
= render 'keynote_speakers'
|
||||
|
||||
-unless @conference.tracks.blank?
|
||||
- if @conference.splashpage.include_tracks
|
||||
= render 'tracks'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue