230 lines
8.8 KiB
Plaintext
230 lines
8.8 KiB
Plaintext
|
|
|
|
-@facebook_title = @facebook_title || @title
|
|
- @twitter_title = @twitter_title || @title
|
|
|
|
-@menu_shadow=true
|
|
-@lang = @lang || LangSite.first
|
|
-if !@facebook_img or @facebook_img == ""
|
|
-@facebook_img= "/public_medias/image_file/file/13/large_4df7bef3.jpg"
|
|
!!!
|
|
|
|
- @social_url = @social_url || request.url.to_s
|
|
|
|
-if @title.to_s == ""
|
|
- @title = "Festival Musifrat French Alps : 2 Jours de concerts Rock Pop Blues"
|
|
|
|
-if @description.to_s == ""
|
|
- @description = "2nde Edition du Festival, l'unique rencontre en France entre la Musique et le Rugby. 9 artistes les 25 et 26 Juin 2021 pour se déconfiner les oreilles en plein air et en sécurité."
|
|
|
|
%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"}
|
|
%head
|
|
-@title = strip_tags(@title.to_s)
|
|
%title=@title.to_s
|
|
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
|
|
<link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
|
|
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
|
|
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
|
|
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
|
|
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
|
|
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
|
|
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
|
|
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
|
|
<link rel="icon" type="image/png" href="/favicon-194x194.png" sizes="194x194">
|
|
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
|
|
<link rel="icon" type="image/png" href="/android-chrome-192x192.png" sizes="192x192">
|
|
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
|
|
<link rel="manifest" href="/manifest.json">
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
|
<meta name="msapplication-TileColor" content="#ffffff">
|
|
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
|
|
<meta name="theme-color" content="#ffffff">
|
|
|
|
%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 }
|
|
|
|
-if @facebook_img
|
|
=raw '<meta property="og:image" content="http://musifrat-festival.com'+@facebook_img.to_s+'"/>'
|
|
=raw '<link rel="image_src" href="http://musifrat-festival.com'+@facebook_img.to_s+'"/>'
|
|
|
|
=raw '<meta name="twitter:card" content="summary_large_image">'
|
|
|
|
|
|
|
|
|
|
=raw '<meta property="twitter:image" content="http://musifrat-festival.com'+@facebook_img.to_s+'"/>'
|
|
|
|
|
|
|
|
|
|
-@img_size = FastImage.size('http://musifrat-festival.com'+@facebook_img.to_s)
|
|
|
|
-if @img_size and @img_size.size > 0
|
|
=raw '<meta property="og:image:width" content="'+@img_size[0].to_s+'"/>'
|
|
=raw '<meta property="og:image:height" content="'+@img_size[1].to_s+'"/>'
|
|
|
|
= javascript_include_tag "public"
|
|
|
|
= csrf_meta_tag
|
|
=render :partial => "public/shared/ga"
|
|
|
|
= stylesheet_link_tag 'public', :media => :all
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Oswald:700" rel="stylesheet">
|
|
= stylesheet_link_tag '/fonts/caviar_dreams/stylesheet.css'
|
|
=javascript_include_tag "https://maps.googleapis.com/maps/api/js?libraries=places,geometry&sensor=false"
|
|
|
|
|
|
|
|
|
|
|
|
%body
|
|
=link_to image_tag("/logo-fond.png", :id => "logo_fond"), "/" if false
|
|
-if false #or @menu_item and @menu_item.id == 1
|
|
.slide_home_wrapper
|
|
|
|
#menu_top
|
|
.sub_menu
|
|
=render :partial => "public/shared/second_menu"
|
|
.menu
|
|
=render :partial => "public/shared/first_menu"
|
|
|
|
|
|
|
|
|
|
|
|
:javascript
|
|
$(document).ready(function(){
|
|
var slider = $('.slider').bxSlider({
|
|
nextText: '>',
|
|
prevText: '<',
|
|
auto: true
|
|
});
|
|
|
|
$(".sub_bar").click(function (){
|
|
slider.stopAuto();
|
|
slider.goToSlide($(this).data('slide'));
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
.slide_home.slider
|
|
|
|
-@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
|
|
|
|
%div.with_ratio.slide{:style => "background-image:url('#{home_slider_slide.image_file.file.large.url}');background-size:100%;background-size:cover;", :data => {:ratio => 0.45}}
|
|
=link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do
|
|
.link_overlay
|
|
.description.vertical_center
|
|
=link_to home_slider_slide.url.to_s, :target => ("_blank" if home_slider_slide.popup) do
|
|
%h3
|
|
-if home_slider_slide.article
|
|
-lang_article = home_slider_slide.article.lang_articles.find_by_lang_site_id(@lang.id)
|
|
=lang_article.title
|
|
|
|
|
|
-if home_slider_slide.titre2?
|
|
.sub_title=home_slider_slide.titre2
|
|
-elsif home_slider_slide.article
|
|
.sub_title
|
|
-if home_slider_slide.article.category
|
|
|
|
-cats = []
|
|
-home_slider_slide.article.categories.uniq.each do |cat|
|
|
-cats << cat.lang(I18n.locale.to_s).name
|
|
=cats.join(", ")
|
|
|
|
%span.sep
|
|
="|"
|
|
=l(home_slider_slide.article.published_at, :format => :human_date)
|
|
.content
|
|
|
|
%h3=home_slider_slide.titre1
|
|
=home_slider_slide.description1
|
|
|
|
|
|
|
|
|
|
|
|
-else
|
|
#top_band.slide_home_wrapper.with_ratio{:style => "background-image:url('#{@img_url}');", :data => {:ratio => 0.35}}
|
|
|
|
|
|
|
|
|
|
#menu_top
|
|
.bars{:onclick => '$("#menu_top .menu").toggle()'}
|
|
=ic :bars
|
|
.menu
|
|
=render :partial => "public/shared/first_menu"
|
|
=link_to image_tag("/logo.png", :id => "logo"), "/"
|
|
-if @title and (!@menu_item or @menu_item.id != 1)
|
|
.h1_inner
|
|
%h1=@title
|
|
|
|
-if @menu_item and @menu_item.id == 1
|
|
#main=yield
|
|
-else
|
|
#main=yield
|
|
|
|
|
|
-if false
|
|
#footer
|
|
.center
|
|
%h2
|
|
Nous contacter
|
|
|
|
-@contact = @contact || Contact.new(:provenance_id => 1)
|
|
|
|
.contact_form.contact_militer#form
|
|
=render :partial => "public/contacts/form"
|
|
#sub_footer
|
|
-if false
|
|
%h3 Nos partenaires
|
|
|
|
=render :partial => "public/partners/partners"
|
|
|
|
#logos
|
|
|
|
|
|
|
|
|
|
|
|
#place
|
|
#socials{:style => "padding-top:40px;"}
|
|
|
|
=link_to ic(:facebook), "https://www.facebook.com/musifratfestival", :target => "_blank"
|
|
=link_to ic(:instagram), "https://www.instagram.com/musifratfestival" , :target => "_blank"
|
|
=link_to ic(:youtube), "https://www.youtube.com/channel/UCcLn0RwcpVfpTJGT3V4PrQw" , :target => "_blank"
|
|
|
|
#contacts
|
|
|
|
%p
|
|
=link_to "Mentions légales", "/fr/mentions-legales.html", :target => "_blank"
|
|
=link_to "Programmation", "/fr/progammation-2021.html"
|
|
=link_to "Billetterie", "/fr/billetterie.html"
|
|
=link_to "Partenaires", "/fr/partenaires.html"
|
|
|
|
=link_to "Contactez-nous", "mailto:fraternelle-rugby-moirans@orange.fr"
|
|
|
|
.clear
|
|
|
|
|
|
:javascript
|
|
resize()
|
|
|