modifs diverses

This commit is contained in:
Nicolas Bally 2017-09-12 22:35:27 +02:00
parent 3f4b4aa466
commit 524cf80461
4 changed files with 197 additions and 171 deletions

View File

@ -1,99 +1,113 @@
!!! !!!
%html{:lang => "fr"} %html{:lang => "fr"}
%head %head
%meta{:"http-equiv" => "content-type" ,:content =>"text/html;charset=UTF-8" } %meta{:"http-equiv" => "content-type" ,:content =>"text/html;charset=UTF-8" }
%title="Pharmacie Boissier - Rives sur Fures (38140) - "+ @title.to_s %title="Pharmacie Boissier - Rives sur Fures (38140) - "+ @title.to_s
-if @description -if @description
%meta{:name => "description", :content => @description} %meta{:name => "description", :content => @description}
-else -else
%meta{:name => "description", :content => "La pharmacie Boissier située à Rives sur Fures (38140) vous accueil et vous conseil."} %meta{:name => "description", :content => "La pharmacie Boissier située à Rives sur Fures (38140) vous accueil et vous conseil."}
-if @keywords -if @keywords
%meta{:name => "keywords", :content => @keywords} %meta{:name => "keywords", :content => @keywords}
-else -else
%meta{:name => "keywords", :content => "pharmacie, Boissier, Rives, Renage, Réaumont, Saint Blaise, Charnècles, homéopathie, aromathérapie"} %meta{:name => "keywords", :content => "pharmacie, Boissier, Rives, Renage, Réaumont, Saint Blaise, Charnècles, homéopathie, aromathérapie"}
= stylesheet_link_tag 'public/public' = stylesheet_link_tag 'public/public'
=javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" =javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"
=javascript_include_tag 'public/public', :debug => true =javascript_include_tag 'public/public', :debug => true
<link href="http://code.google.com/apis/maps/documentation/javascript/examples/standard.css" rel="stylesheet" type="text/css" /> <link href="http://code.google.com/apis/maps/documentation/javascript/examples/standard.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&region=FR"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&region=FR"></script>
= csrf_meta_tag = csrf_meta_tag
<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27563989-1']); _gaq.push(['_setAccount', 'UA-27563989-1']);
_gaq.push(['_trackPageview']); _gaq.push(['_trackPageview']);
(function() { (function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})(); })();
</script> </script>
%body %body
#public #public
#header #header
.center .center
.menu .menu
=render(:partial => "public/shared/first_menu") =render(:partial => "public/shared/first_menu")
=link_to image_tag('front/logo.png', :alt => "Pharmacie Boissier - Rives sur Fures - Pays Voironnais (à proximité de Renage, Réaumont, Saint Blaise du Buis, Charnècles)"), "/" =link_to image_tag('front/logo.png', :alt => "Pharmacie Boissier - Rives sur Fures - Pays Voironnais (à proximité de Renage, Réaumont, Saint Blaise du Buis, Charnècles)"), "/"
=yield =yield
#footer :javascript
.center $(".promotion_line .element").css("height", "auto");
.column $(".promotion_line").each(function() {
%h4 Horaires d'ouverture promotion_pannel_height= 0;
%p $(this).find(".element").each(function() {
="- le lundi de 14h à 19h " if ($(this).height() > promotion_pannel_height) {
%br return promotion_pannel_height = $(this).height();
="- du mardi au vendredi : 8h30 à 12h15 et 14h à 19h " }
%br });
="- le samedi : 8h30 à 12h15 " promotion_pannel_height = promotion_pannel_height - 0
%p=image_tag('front/footer_logo.png') $(this).find(".element").css("height", promotion_pannel_height+"px");
.column });
%h4 Nous contacter
%p
Pharmacie Boissier
%br
63 rue du Plan
%br
38140 Rives sur Fures
%p
Plan daccès
%p
=link_to "contact@pharmacieboissier.com", "mailto:contact@pharmacieboissier.com"
%p
tel : 04 76 65 35 69
%br
fax : 04 76 66 83 50
.column.last
%h4 Pharmacie de garde
%p
=link_to "- consultez la liste des pharmacies de garde ", "/pages/infos-utiles/pharmacies-gardes.html"
%br
="- appelez le 3915"
%h4=link_to "Déposez vos ordonnances", "/pages/ordonnances.html" #footer
.center
.column
%h4 Horaires d'ouverture
%p
="- le lundi de 14h à 19h "
%br
="- du mardi au vendredi : 8h30 à 12h15 et 14h à 19h "
%br
="- le samedi : 8h30 à 12h15 "
%p=image_tag('front/footer_logo.png')
.column
%h4 Nous contacter
%p
Pharmacie Boissier
%br
63 rue du Plan
%br
38140 Rives sur Fures
%p=link_to "ou commandez un produit directement en ligne !","/pages/ordonnances.html" %p
Plan daccès
%p
=link_to "contact@pharmacieboissier.com", "mailto:contact@pharmacieboissier.com"
%p
tel : 04 76 65 35 69
%br
fax : 04 76 66 83 50
.column.last
%h4 Pharmacie de garde
%p
=link_to "- consultez la liste des pharmacies de garde ", "/pages/infos-utiles/pharmacies-gardes.html"
%br
="- appelez le 3915"
.clear
%h4=link_to "Déposez vos ordonnances", "/pages/ordonnances.html"
%p=link_to "ou commandez un produit directement en ligne !","/pages/ordonnances.html"
.clear

View File

@ -1,9 +1,12 @@
%h2 Cosmétiques %h2{:id => "cosmetique"} Cosmétiques
=render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 2).order("month ASC, title ASC")) .promotion_line
%p{:style=> "clear:both"} =render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 2).order("month ASC, title ASC"))
%h2 Bébés %p{:style=> "clear:both"}
=render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 3).order("month ASC, title ASC")) %h2{:id => "bebe"} Bébés
%p{:style=> "clear:both"} .promotion_line
%h2 Hygiène =render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 3).order("month ASC, title ASC"))
=render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 1).order("month ASC, title ASC")) %p{:style=> "clear:both"}
%p{:style=> "clear:both"} %h2{:id => "hygiene"} Hygiène
.promotion_line
=render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 1).order("month ASC, title ASC"))
%p{:style=> "clear:both"}

View File

@ -2,82 +2,91 @@
#slider #slider
<div id="wrapper" > <div id="wrapper" >
<div id="carousel" > <div id="carousel" >
<img src="/assets/photos/01.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5" /> <img src="/assets/photos/01.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5" />
<img src="/assets/photos/02.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/> <img src="/assets/photos/02.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/>
<img src="/assets/photos/03.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/> <img src="/assets/photos/03.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/>
<img src="/assets/photos/04.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/> <img src="/assets/photos/04.jpg" alt="Lunar New Year 2012: Year of the Dragon" data-ratio="1.5"/>
</div> </div>
</div> </div>
#home_ordonnance #home_ordonnance
.center .center
%p %p
=link_to "Nouveau ! déposez vos ordonnances ou commandez un produit directement en ligne !", "/pages/ordonnances.html" =link_to "Nouveau ! déposez vos ordonnances ou commandez un produit directement en ligne !", "/pages/ordonnances.html"
#home_folder #home_folder
-block = @home.home_blocks.find_by_slug("right_block") -block = @home.home_blocks.find_by_slug("right_block")
-if block and block.cible and block.cible_type == "Folder" -if block and block.cible and block.cible_type == "Folder"
=image_tag((block.cible.image_file ? block.cible.image_file.file.large.medium.url : "")) =image_tag((block.cible.image_file ? block.cible.image_file.file.large.medium.url : ""))
%h3 Dossier du mois %h3 Actualité
%h2=link_to block.cible.title, block.cible.cible_url %h2=link_to block.cible.title, block.cible.cible_url
.description= simple_format block.cible.description .description= simple_format block.cible.description
=link_to "Lire la suite", block.cible.cible_url, :class => "readmore" =link_to "Lire la suite", block.cible.cible_url, :class => "readmore"
%p{:style => "clear:both"} %p{:style => "clear:both"}
#home_promotions #home_promotions
%h2 %h2
%p.center=link_to "PROMOTIONS (voir toutes les promotions)", "/pages/promotions.html" %p.center=link_to "PROMOTIONS (voir toutes les promotions)", "/pages/promotions.html"
.center .center
.column_1.column .promotion_line
.cat
Cosmétiques .column_1.column.element
-if @home.promotion_1 .cat
-promotion = @home.promotion_1 =link_to "Cosmétiques", "/pages/promotions.html#cosmetique"
-if @home.promotion_1
-promotion = @home.promotion_1
.img .img
=link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html" if promotion.image_file =link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html#cosmetique" if promotion.image_file
.title .title
=link_to promotion.title, "/pages/promotions.html" =link_to promotion.title, "/pages/promotions.html#cosmetique"
.description .description
=link_to raw(promotion.description), "/pages/promotions.html" =link_to raw(promotion.description), "/pages/promotions.html#cosmetique"
.column_2.column .column_2.column.element
.cat .cat
Bébés =link_to "Bébés", "/pages/promotions.html#bebe"
-if @home.promotion_2
-promotion = @home.promotion_2 -if @home.promotion_2
-promotion = @home.promotion_2
.img .img
=link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html" if promotion.image_file =link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html#bebe" if promotion.image_file
.title .title
=link_to promotion.title, "/pages/promotions.html" =link_to promotion.title, "/pages/promotions.html#bebe"
.description .description
=link_to raw(promotion.description), "/pages/promotions.html" =link_to raw(promotion.description), "/pages/promotions.html#bebe"
.column_3.column .column_3.column.element
.cat .cat
Hygiène =link_to "Hygiène", "/pages/promotions.html#hygiene"
-if @home.promotion_3
-promotion = @home.promotion_3 -if @home.promotion_3
-promotion = @home.promotion_3
.img .img
=link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html" if promotion.image_file =link_to image_tag(promotion.image_file.file.large.medium.small.thumb.url), "/pages/promotions.html#hygiene" if promotion.image_file
.title .title
=link_to promotion.title, "/pages/promotions.html" =link_to promotion.title, "/pages/promotions.html#hygiene"
.description .description
=link_to raw(promotion.description), "/pages/promotions.html" =link_to raw(promotion.description), "/pages/promotions.html#hygiene"
.clear .clear
:css
.cat a{
color:white !important;
}

View File

@ -1,11 +1,11 @@
.promotion{:style => ("margin-right:0px" if (promotion_counter+1).modulo(3) == 0)} .promotion.element{:style => ("margin-right:0px" if (promotion_counter+1).modulo(3) == 0)}
.img .img
=image_tag promotion.image_file.file.large.medium.small.thumb.url if promotion.image_file =image_tag promotion.image_file.file.large.medium.small.thumb.url if promotion.image_file
.title .title
%h3=promotion.title =promotion.title
.description .description
=simple_format promotion.description =simple_format promotion.description
.clear .clear