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
|
|
@ -25,11 +25,12 @@
|
|||
= link_to 'Visit Venue Website', @conference.venue.website, target: '_blank'
|
||||
|
||||
|
||||
:javascript
|
||||
$(document).ready(function(){
|
||||
var photo = "#{@conference.venue.photo}";
|
||||
if(photo)
|
||||
{
|
||||
$('#location').css('background-image', 'url('+photo+')');
|
||||
}
|
||||
});
|
||||
- unless @conference.venue.photo.blank?
|
||||
:javascript
|
||||
$(document).ready(function(){
|
||||
var photo = "#{@conference.venue.photo}";
|
||||
if(photo)
|
||||
{
|
||||
$('#location').css('background-image', 'url('+photo+')');
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue