slider accueil

This commit is contained in:
Nicolas Bally 2014-10-29 16:33:41 +01:00
parent 0a60a46159
commit 7f0c812280
4 changed files with 37 additions and 1 deletions

View File

@ -45,6 +45,43 @@
=image_tag "/tel.png"
04 76 03 19 70
-if @menu_item.slug and @menu_item.slug == "index"
.slider
.slides
%ul.slides-container
%li
=image_tag "/slide1.jpg"
.desc
%h3 Full Covering
="/"
Agencement, Décoration
%li
=image_tag "/slide2.jpg"
.desc
%h3 Banderole
%li
=image_tag "/slide3.jpg"
.desc
%h3 Installation d'une enseigne
="/"
Bâche tendue
.top
.menu_background
.main#menu
=link_to raw("<h4>"+ic(:home)+"</h4>"), "/"
@ -52,7 +89,6 @@
-description = ""
-description = menu_item.menu_content.description if menu_item.menu_content and menu_item.menu_content_type == "Page"
=link_to raw("<h4>#{menu_item.name}</h4>"),menu_item_path(:url => menu_item.url), :class => ("active" if @menu_item and (@menu_item == menu_item or @menu_item.ancestors.include?(menu_item)))
#corps{:class => (@menu_item.slug if @menu_item)}
.main=yield

BIN
public/slide1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

BIN
public/slide2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 KiB

BIN
public/slide3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB