ballalama3_app/app/views/layouts/public.html.haml
Nicolas Bally 462d328cb5 suite
2017-01-03 23:35:48 +01:00

195 lines
5.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!!!
%html{:xmlns=>"http://www.w3.org/1999/xhtml", :"xml:lang"=>"fr", :lang=>"fr"}
%head
%title= "Ballalama - "+ @title.to_s+" "
%meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
%meta{ :"name" => "Description", :content => @description || ""}
%meta{ :"name" => "Keywords", :content => @keywords || "" }
%meta{ :"name" => "viewport", :content => "width=device-width, initial-scale=1.0" }
= csrf_meta_tag
= stylesheet_link_tag 'public'
= stylesheet_link_tag '/fonts/OpenSans/stylesheet.css'
= stylesheet_link_tag '/fonts/Stylograph/stylesheet.css'
= javascript_include_tag "application"
=render :partial => "public/shared/ga"
=javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false&region=FR"
<link href="https://fonts.googleapis.com/css?family=Galada|Lato|Roboto+Slab" rel="stylesheet">
%body
#main_center
%a{:id => "top_anchor"}
#top_band
=link_to image_tag( "/logo.png", :id => "logo", :alt => "", :style => ""), "/"
.clear
.slider_container
.slider
.slides
%ul.slides-container
%li
=image_tag "/slide1.jpg"
%li
=image_tag "/slide2.jpg"
%li
=image_tag "/slide3.jpg"
=raw "<!---"
.desc
%h3 Installation d'une enseigne
="/"
Bâche tendue
=raw "--->"
#menu-top
#menu
=link_to image_tag( "/logo.png", :class => "logo", :alt => ""), "/"
=render(:partial => "public/shared/first_menu")
.clear
-if @menu_item
-if @menu_item.parent_id
-if @menu_item.ancestors.reverse[0]
-first_level_menu = @menu_item.ancestors.reverse[0]
-else
-first_level_menu = @menu_item
-if first_level_menu.children.size > 0
#sidebar
#menu_left.widget
%h3=menu_item_link(first_level_menu)
%ul
-first_level_menu.children.order(:position).each do |menu_item|
%li
-if @ancestor_1
-if @ancestor_1 == menu_item
=menu_item_link(menu_item, true)
-else
=menu_item_link(menu_item, false)
-else
=menu_item_link(menu_item)
#body{:class => ("with_sidebar" if first_level_menu.children.size > 0)}=yield
.clear
-if @menu_item and @menu_item.id == 1
#big_menu_links
-i = 0
-BigMenu.all.each do |big_menu|
-i += 1
%h3{:data => {:big_menu => i}, :class => ("active" if i == 1)}
=big_menu.name
#big_menu
-i = 0
-BigMenu.all.each do |big_menu|
-i += 1
.big_menu#big_menu{:id => i, :style => ("display:block;" if i == 1)}
.img
=image_tag big_menu.image_file.file.large.medium.url if big_menu.image_file
.content
%ul
-big_menu.big_menu_items.order(:position).each do |big_menu_item|
%li=link_to big_menu_item.name, big_menu_item.cible.cible_url(LangSite.first) if big_menu_item.cible
.clear
:coffeescript
$("#big_menu_links h3").each ->
$(this).mouseover ->
$("#big_menu_links h3").removeClass("active")
$(this).addClass("active")
$(".big_menu").hide()
$("#big_menu_"+$(this).data("big-menu")).show()
%h2{:style => "text-align:center"} Actualités
=render :collection => Article.recents, :partial => "public/articles/article"
#newsletter
.center
=render(:partial => "portlets/dynamic_contents/newsletter_form")
#bottom
%table
%tr
%td{:style => "border:0px solid ;width:40%;padding:20px;padding-top:10px; "}
%h3 Visites sur réservation :
de 9h à 12h et de 14h à 17h
%br
Ouvert tous les jours de l'année.
%br
%br
Groupes à partir de 6 personnes, maximum
%br
30 personnes. Au-delà, nous consulter.
%td{:style => "border:0px solid ; width:20%;text-align:center;"}
%h3 Ballalama
80 chemin du champ de lOrme
%br
38140 Réaumont
%br
%br
%br
%br
= link_to "Mentions légales","/mentions-legales"
%td{:style => "border:0px solid ;width:40%;text-align:right; "}
= link_to(image_tag( "/plan.png", :alt => "Ballalama élevage et promenades en lama à Réaumont", :style => "margin-right:10px"), "/pages/plan-dacces.html")
.clear