diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index b275be8..e763752 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -1,99 +1,113 @@ !!! %html{:lang => "fr"} - %head - %meta{:"http-equiv" => "content-type" ,:content =>"text/html;charset=UTF-8" } - %title="Pharmacie Boissier - Rives sur Fures (38140) - "+ @title.to_s - -if @description - %meta{:name => "description", :content => @description} - -else - %meta{:name => "description", :content => "La pharmacie Boissier située à Rives sur Fures (38140) vous accueil et vous conseil."} - -if @keywords - %meta{:name => "keywords", :content => @keywords} - -else - %meta{:name => "keywords", :content => "pharmacie, Boissier, Rives, Renage, Réaumont, Saint Blaise, Charnècles, homéopathie, aromathérapie"} - - - - = stylesheet_link_tag 'public/public' - + %head + %meta{:"http-equiv" => "content-type" ,:content =>"text/html;charset=UTF-8" } + %title="Pharmacie Boissier - Rives sur Fures (38140) - "+ @title.to_s + -if @description + %meta{:name => "description", :content => @description} + -else + %meta{:name => "description", :content => "La pharmacie Boissier située à Rives sur Fures (38140) vous accueil et vous conseil."} + -if @keywords + %meta{:name => "keywords", :content => @keywords} + -else + %meta{:name => "keywords", :content => "pharmacie, Boissier, Rives, Renage, Réaumont, Saint Blaise, Charnècles, homéopathie, aromathérapie"} + + + + = stylesheet_link_tag 'public/public' + - =javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" - - =javascript_include_tag 'public/public', :debug => true - - - - - - - - = csrf_meta_tag - - + + = csrf_meta_tag + + - - - - %body - #public - #header - .center - .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)"), "/" - - =yield - - #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 + + + + + %body + #public + #header + .center + .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)"), "/" + + =yield + + :javascript + $(".promotion_line .element").css("height", "auto"); + $(".promotion_line").each(function() { + promotion_pannel_height= 0; + $(this).find(".element").each(function() { + if ($(this).height() > promotion_pannel_height) { + return promotion_pannel_height = $(this).height(); + } + }); + promotion_pannel_height = promotion_pannel_height - 0 + $(this).find(".element").css("height", promotion_pannel_height+"px"); + }); + + + #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 - Plan d’accè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" + %p + Plan d’accè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" - %p=link_to "ou commandez un produit directement en ligne !","/pages/ordonnances.html" - - .clear - \ No newline at end of file + %p=link_to "ou commandez un produit directement en ligne !","/pages/ordonnances.html" + + .clear + \ No newline at end of file diff --git a/app/views/portlets/dynamic_contents/_promotions-list.html.haml b/app/views/portlets/dynamic_contents/_promotions-list.html.haml index 846c63f..a4f88c7 100644 --- a/app/views/portlets/dynamic_contents/_promotions-list.html.haml +++ b/app/views/portlets/dynamic_contents/_promotions-list.html.haml @@ -1,9 +1,12 @@ -%h2 Cosmétiques -=render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 2).order("month ASC, title ASC")) -%p{:style=> "clear:both"} -%h2 Bébés -=render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 3).order("month ASC, title ASC")) -%p{:style=> "clear:both"} -%h2 Hygiène -=render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 1).order("month ASC, title ASC")) -%p{:style=> "clear:both"} \ No newline at end of file +%h2{:id => "cosmetique"} Cosmétiques +.promotion_line + =render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 2).order("month ASC, title ASC")) + %p{:style=> "clear:both"} +%h2{:id => "bebe"} Bébés +.promotion_line + =render(:partial => "public/promotions/promotion", :collection => Promotion.where(:promotion_type_id => 3).order("month ASC, title ASC")) + %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"} \ No newline at end of file diff --git a/app/views/public/home/show.html.haml b/app/views/public/home/show.html.haml index 389c4cf..04f025f 100644 --- a/app/views/public/home/show.html.haml +++ b/app/views/public/home/show.html.haml @@ -1,83 +1,92 @@ #slider - -