Conditional rendering for gallery button in the splash

This commit is contained in:
Gopesh Tulsyan 2014-07-01 23:54:39 +05:30
parent 81c538d82d
commit bea55454b2

View file

@ -17,6 +17,7 @@
.row-fluid .row-fluid
.col-md-12.lead .col-md-12.lead
%p= @conference.description %p= @conference.description
-unless @conference.photos.blank?
= link_to 'Gallery', fetch_gallery_photos_conference_path(@conference.id), class: 'btn btn-primary btn-lg', id: 'gallery-btn', remote: true = link_to 'Gallery', fetch_gallery_photos_conference_path(@conference.id), class: 'btn btn-primary btn-lg', id: 'gallery-btn', remote: true
= render 'gallery' = render 'gallery'
- if @conference.include_program_in_splash? - if @conference.include_program_in_splash?