Use PictureUploader on Lodging
This commit is contained in:
parent
40023044af
commit
0ad3ff01c3
5 changed files with 11 additions and 17 deletions
|
|
@ -10,15 +10,15 @@
|
|||
- slice.each do |lodging|
|
||||
.col-md-4
|
||||
.thumbnail
|
||||
- if lodging.photo.blank?
|
||||
- if !lodging.picture?
|
||||
%p.text-center
|
||||
%i.fa.fa-home.fa-5x
|
||||
- else
|
||||
-if lodging.website_link.present?
|
||||
= link_to(lodging.website_link, class: 'thumbnail') do
|
||||
= image_tag lodging.photo(:thumb), class: 'img-responsive img-lodging'
|
||||
= image_tag lodging.picture.thumb, class: 'img-responsive img-lodging'
|
||||
- else
|
||||
= image_tag lodging.photo(:thumb), class: 'img-responsive img-lodging'
|
||||
= image_tag lodging.picture.thumb, class: 'img-responsive img-lodging'
|
||||
.caption
|
||||
%h3.text-center
|
||||
= lodging.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue