boissier_app/app/views/public/home/show.html.haml
2017-09-12 22:35:27 +02:00

92 lines
2.9 KiB
Plaintext

#slider
<div id="wrapper" >
<div id="carousel" >
<img src="/assets/photos/01.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5" />
<img src="/assets/photos/02.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/>
<img src="/assets/photos/03.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/>
<img src="/assets/photos/04.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/>
</div>
</div>
#home_ordonnance
.center
%p
=link_to "Nouveau ! déposez vos ordonnances ou commandez un produit directement en ligne !", "/pages/ordonnances.html"
#home_folder
-block = @home.home_blocks.find_by_slug("right_block")
-if block and block.cible and block.cible_type == "Folder"
=image_tag((block.cible.image_file ? block.cible.image_file.file.large.medium.url : ""))
%h3 Actualité
%h2=link_to block.cible.title, block.cible.cible_url
.description= simple_format block.cible.description
=link_to "Lire la suite", block.cible.cible_url, :class => "readmore"
%p{:style => "clear:both"}
#home_promotions
%h2
%p.center=link_to "PROMOTIONS (voir toutes les promotions)", "/pages/promotions.html"
.center
.promotion_line
.column_1.column.element
.cat
=link_to "Cosmétiques", "/pages/promotions.html#cosmetique"
-if @home.promotion_1
-promotion = @home.promotion_1
.img
=link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html#cosmetique" if promotion.image_file
.title
=link_to promotion.title, "/pages/promotions.html#cosmetique"
.description
=link_to raw(promotion.description), "/pages/promotions.html#cosmetique"
.column_2.column.element
.cat
=link_to "Bébés", "/pages/promotions.html#bebe"
-if @home.promotion_2
-promotion = @home.promotion_2
.img
=link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html#bebe" if promotion.image_file
.title
=link_to promotion.title, "/pages/promotions.html#bebe"
.description
=link_to raw(promotion.description), "/pages/promotions.html#bebe"
.column_3.column.element
.cat
=link_to "Hygiène", "/pages/promotions.html#hygiene"
-if @home.promotion_3
-promotion = @home.promotion_3
.img
=link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html#hygiene" if promotion.image_file
.title
=link_to promotion.title, "/pages/promotions.html#hygiene"
.description
=link_to raw(promotion.description), "/pages/promotions.html#hygiene"
.clear
:css
.cat a{
color:white !important;
}