This commit is contained in:
Nicolas Bally 2018-04-29 16:30:21 +02:00
parent 6760fbaf47
commit d55cc5c33b
4 changed files with 58 additions and 2 deletions

View File

@ -1,3 +1,5 @@
$blue:#428bca;
@import "bootstrap";
@import "fontawesome/font-awesome";
@ -16,6 +18,45 @@
@import "vendor/flipclock";
.sub_menu_boutique{
padding:5px 5px;
a{
color:white;
display:inline-block;
padding:4px 10px;
margin:0 3px;
border-radius:30px;
background:#a39f9f;
&:hover, &.active{
text-decoration:none;
color:white;
background:$blue !important;
}
}
ul{
margin:0;
padding:2px 10px;
li{
padding:0;
margin:0;
display:inline;
}
}
}
.footer{
position:absolute;
bottom:10px;

View File

@ -19,6 +19,7 @@ class Public::ProductsController < ApplicationController
def index
@products = true
@reseaux = current_customer.reseauxes.find(params[:reseaux_id])
@reseaux_layout = true
session[:reseaux_id] =@reseaux.id

View File

@ -56,9 +56,13 @@
-else
=link_to image_tag("/logo.png", :id => "logo"), "/"
.clear{:style => "height:1px;"}
=render :partial => "public/shared/sub_menu"
#main
=yield
-if !@my_reseauxes
.footer

View File

@ -0,0 +1,10 @@
-if @needs or @products or @product
.sub_menu_boutique
.center
%ul
-if current_customer.account_validated?
%li=link_to "Besoins", public_needs_path, :class => ("active" if @needs)
-if session[:reseaux_id].to_i > 0
%li=link_to "Offres", public_reseaux_products_path(:reseaux_id => session[:reseaux_id].to_i), :class => ("active" if @products or @product)