-@products_controllers = ["ProductOrdersController", "ProductsController","ProductCategoriesController", "ProductCustomersController", "ProductCustomersAuthsController" ] -@facebook_title = @facebook_title || @title -@menu_shadow=true -@lang = @lang || LangSite.first -if !@facebook_img or @facebook_img == "" -@facebook_img= "/public_medias/image_file/file/280/large_medium_shutterstock_64985671_0__-_copie.jpg" !!! - @social_url = @social_url || request.url.to_s -if @description and @description == "" - @description = qit "SEO texte description par défaut","" %html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"} %head -@title = strip_tags(@title.to_s) %title=@title.to_s+" - Jipe" %meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"} %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" } %meta{ :"name" => "Description", :content => @description } %meta{ :"name" => "Keywords", :content => @keywords } =raw '' =raw '' =raw '' =raw '' =raw '' =raw '' =raw '' =raw '' -if @facebook_img =raw '' =raw '' =raw '' =raw '' -@img_size = FastImage.size('https://jipe.fr'+@facebook_img.to_s) -if @img_size and @img_size.size > 0 =raw '' =raw '' = javascript_include_tag "public" = csrf_meta_tag =render :partial => "public/shared/ga" = stylesheet_link_tag 'public', :media => :all = stylesheet_link_tag '/fonts/Stylograph/stylesheet.css' =javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places,geometry&sensor=false" %body.forum_body{:style => ("padding:0; " if @page_dons).to_s+(@don_image ? "background-image:url('#{@don_image}');" : ""),:class => (" don_tunnels" if controller.class.name.split("::")[1] == "DonTunnelsController").to_s+(" boutique_body" if @products_controllers.include?(controller.class.name.split("::")[1])).to_s+(" forum_body" if controller.class.name.split("::").first=="Forum").to_s}
-if flash[:error] or flash[:notice] or flash[:alert] .flashs -if flash[:error] .error %span.remove=ic :times =flash[:error] -if flash[:notice] .notice %span.remove=ic :times =flash[:notice] -if flash[:alert] .alert %span.remove=ic :times =flash[:alert] #main{:class => (@menu_item.slug if @menu_item)} -if !@page_dons and (!@don_tunnel or @don_tunnel.layout_html) #menu_top_container .main_container.widther #menu .bars{:onclick => '$("#menu ul").toggle()'} =ic :bars =link_to image_tag("/logo.png", :id => "logo"), "/"+@lang.slug+"/index.html" %ul -if false %li =link_to "Blog", articles_path(:lang => @lang.slug) -MenuItem.where(:parent_id => nil, :menu_id => Menu.first.id).order(:position).each do |menu_item| -description = "" -description = menu_item.menu_content.description if menu_item.menu_content and menu_item.menu_content_type == "Page" -if menu_item_link(menu_item) and menu_item_link(menu_item) != "" %li =menu_item_link(menu_item) .clear =link_to add_banner_public_banners_path(), :remote => true, :onclick => "$('#banner').show();$('#small_banner').closest('#small_banner').hide();" do #small_banner{:style => ("display:none;" if !session[:no_banner])} %span{:style => "font-size:20px;"} =ic(:warning) %br Informations %br COVID-2019 #banner{:style => ("display:none;" if session[:no_banner])} .left %span{:style => "font-size:25px;"}=ic(:warning) %br COVID-2019 .right %p %strong Jipé continue à produire en prenant les mesures nécessaires pour %strong assurer la sécurité de ses %strong collaborateurs, de ses %strong prestataires et %strong fournisseurs. %p Après avoir fourni des %strong structures pour faire face à l’urgence, nous pouvons %strong dès maintenant vous proposer des %strong solutions pour gérer l’après confinement (salles externes, douches de décontamination, sanitaires, lieux d’isolement…) %p.actions =link_to "En savoir plus", "/fr/blog/covid-19-jipe-continue-a-produire-et-propose-des-solutions.html" =link_to "Nous contacter", "/fr/contact.html" .close_banner=link_to ic(:times)+" Ne plus afficher cette info", remove_banner_public_banners_path(), :remote => true, :onclick => "$(this).closest('#banner').hide();$('#small_banner').show();" .clear :scss #small_banner{ position:absolute; top:50px; left:0; background:#ffedcd; color:#333f48; color:#BF2F2A; font-size:14px; text-align:center; padding:10px 30px; z-index:10; font-weight:bold; } #banner{ background:#ffedcd; color:#333f48; padding:20px 20px; font-size:14px; position:relative; p{ margin:5px 0; } .actions{ a{ padding:4px 8px; border:1px solid #BF2F2A; display:inline-block; margin-right:8px; margin-top:8px; } } .close_banner{ position:absolute; bottom:5px;right:5px; } .right{ margin-left:200px; } .left{ color:#BF2F2A; font-size:18px; float:left; text-align:center; width:200px; margin-left:-10px; padding-top:30px; } } -if @menu_item and @menu_item.id != 1 -if @menu_item.ancestors.reverse[0] -menu_title = @menu_item.ancestors.reverse[0] -else -menu_title = @menu_item #sub_menu_top .bars{:onclick => '$("#sub_menu_top .normal").toggle();'} =ic :bars -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 %ul -first_level_menu.children.order(:position).each do |menu_item| %li -if @ancestor_1 -if @ancestor_1 == menu_item -active = true -menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id) -if active == nil -if @menu_item and (@menu_item == menu_item or @menu_item.ancestors.include?(menu_item)) -active = true -else -active = false -name = menu_item_lang.name -if menu_item_lang.enabled == true and menu_item_lang.visible == true =link_to @jipe_host.to_s+menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug), :class => "normal "+("active" if active).to_s do -if menu_item.icon_image_file =image_tag menu_item.icon_b_image_file.file.url, :class => "blanc" if menu_item.icon_image_file =image_tag menu_item.icon_image_file.file.url, :class => "noir" if menu_item.icon_b_image_file =name -if @menu_item and @menu_item.id == 1 #slider_banner .slider_home #bxslider -@home_slider = HomeSlider.find_by_slug("home") -@date = Time.now -if @home_slider -@home_slides_simu = @home_slider.home_slider_slides.where(:enabled => true) -@home_slides_simu = @home_slides_simu.where("start_at IS NULL or start_at <= ?",@date) -@home_slides_simu = @home_slides_simu.where("end_at IS NULL or end_at >= ?",@date) -@home_slides_simu = @home_slides_simu.order(:position) -@home_slides_simu = @home_slides_simu.joins(:lang_sites).where("lang_sites.id = ?", @lang.id) -@home_slides_simu.each do |home_slider_slide| -if home_slider_slide.image_file -url = "" -url = home_slider_slide.image_file.file.large.url =link_to home_slider_slide.url.to_s do .slide_inner.with_ratio{:style => "background:url('#{url}') black no-repeat center center;background-size:100%;background-size:cover;position:relative;", :data => {:ratio => 0.37}} -if home_slider_slide.title %h1.title =home_slider_slide.title :javascript $(document).ready(function(){ $('#bxslider').bxSlider({ nextText: '>', prevText: '<', auto: true, speed:700, pause:3000 }); }); =yield :scss #sub_menu_top.home_sub_menu{ margin-bottom:50px; ul li a{ &:hover{ color:#BF2F2A; .noir{ display:block !important; } .blanc{ display:none !important; } } } } -if @menu_item and @menu_item.id == 1 #sub_menu_top.home_sub_menu -first_level_menu = MenuItem.where(:id => 4).first -if first_level_menu and first_level_menu.children.size > 0 %ul -first_level_menu.children.order(:position).each do |menu_item| %li -if @ancestor_1 -if @ancestor_1 == menu_item -active = true -menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id) -if active == nil -if @menu_item and (@menu_item == menu_item or @menu_item.ancestors.include?(menu_item)) -active = true -else -active = false -name = menu_item_lang.name -if menu_item_lang.enabled == true and menu_item_lang.visible == true =link_to @jipe_host.to_s+menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug), :class => ("active" if active) do -if menu_item.icon_image_file =image_tag menu_item.icon_b_image_file.file.url, :class => "blanc" if menu_item.icon_image_file =image_tag menu_item.icon_image_file.file.url, :class => "noir" if menu_item.icon_b_image_file =name .clear .bottom .inner =ic :"map-marker" Jipé ="-" Zone Industrielle Le Pâquis ="-" 55210 VIGNEULLES LES HATTONCHATEL ="-" France ="-" =ic(:phone) +33 (0)3 29 89 35 34 ="-" =ic(:"envelope-o") =link_to "contact@jipe.fr", "mailto:contact@jipe.fr" .span SAS au capital de 651 510,00 € ="-" RCS : Colmar B 530 702 331 ="-" APE : 2511Z :javascript resize()