Adds lodging splash view
Check for venue photo before rendering
This commit is contained in:
parent
01bd45a045
commit
0b6b046016
4 changed files with 38 additions and 8 deletions
18
app/views/conference/_lodging.html.haml
Normal file
18
app/views/conference/_lodging.html.haml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
%div.row.col-md-12.text-center
|
||||
%h2 Lodgings
|
||||
-unless @conference.lodging_description.blank?
|
||||
%p.lead
|
||||
= @conference.lodging_description
|
||||
|
||||
%div.row
|
||||
- @conference.venue.lodgings.each do |r|
|
||||
%div.col-md-3.thumbnail
|
||||
-unless r.photo.blank?
|
||||
= image_tag r.photo(:large), class: 'img-responsive'
|
||||
-unless r.name.blank?
|
||||
%h4.text-center #{ r.name }
|
||||
-unless r.description.blank?
|
||||
%p.text-left #{ r.description }
|
||||
- unless r.website_link.blank?
|
||||
.text-center
|
||||
= link_to 'Go to Website', r.website_link
|
||||
Loading…
Add table
Add a link
Reference in a new issue