boissier_app/app/views/public/home/_slide.html.haml
2011-07-08 18:35:35 +02:00

18 lines
413 B
Plaintext

%li#slide.slide{:id => slide.id, :style => "width:960px;height:309px;"}
- if slide.cible
-url = slide.cible.cible_url
-else
-url = ""
.title
=link_to slide.title, url
.description
=link_to simple_format(slide.description), url
.image_file=link_to image_tag( slide.image_file.file.large.medium.url), url if slide.image_file
.cible= link_to image_tag('front/en-savoir-plus-gris.png'), url