ballalama3_app/app/views/layouts/public.html.haml
2017-09-13 23:54:16 +02:00

240 lines
7.2 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"
=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 "/slide4.jpg"
%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|
-menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id)
-if menu_item_lang.enabled == true and menu_item_lang.visible == true
%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)
-if menu_item.children.size > 0
%ul
-menu_item.children.order(:position).each do |menu_item|
-menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id)
-if menu_item_lang.enabled == true and menu_item_lang.visible == true
%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 and 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;font-size:34px;margin-top:50px"} Actualités
=render :collection => Article.recents, :partial => "public/articles/article"
#newsletter
.center
=render(:partial => "portlets/dynamic_contents/newsletter_form")
#bottom
.col{:style => "width:30%;"}
%h3 Visites sur réservation :
de 9h à 12h et de 14h à 17h
%br
%br
Tél : 04 76 91 03 34
%br
%br
N° Siret : 430 323 113 00018
<div id="TA_rated112" class="TA_rated">
<ul id="AYEEGPis7XY" class="TA_links 5bGPNUBZG96O">
<li id="DifinugB9TkB" class="AHBa9f1uWjT">
<a target="_blank" href="https://www.tripadvisor.fr/"><img src="https://www.tripadvisor.fr/img/cdsi/img2/badges/ollie-11424-2.gif" alt="TripAdvisor"/></a>
</li>
</ul>
</div>
<script src="https://www.jscache.com/wejs?wtype=rated&amp;uniq=112&amp;locationId=12277950&amp;lang=fr&amp;display_version=2"></script>
.col{:style => "width:40%;text-align:center;"}
%h3 Ballalama
80 chemin du champ de lOrme
%br
38140 Réaumont
%br
=link_to image_tag("/afla.png", :class => "afla"), "http://www.lamas-alpagas.org/", :target => "_blank"
&nbsp;&nbsp;
=link_to image_tag("/ferme.png", :class => "ferme"), "http://www.bienvenue-a-la-ferme.com/", :target => "_blank"
&nbsp;&nbsp;
=link_to image_tag("/pv.png", :class => "ferme"), "https://www.paysvoironnais.info/", :target => "_blank"
.clear
%br
= link_to "Mentions légales","/mentions-legales.html"
.col{:style => "width:30%;text-align:right;"}
= link_to(image_tag( "/plan.png", :alt => "Ballalama élevage et promenades en lama à Réaumont", :style => "margin-right:10px"), "/plan-dacces.html")
%br
.clear
.socials_links
.top_link
=i(:"arrow-circle-o-up")
=render :partial => "public/shared/ga"