41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
#header
|
|
=render partial: 'public/shared/mobile_menu'
|
|
.container
|
|
.top-bar
|
|
-if current_p_customer
|
|
=link_to ic(:"power-off")+" Déconnexion", logout_public_p_customer_auths_path()
|
|
|
|
-if current_p_customer
|
|
=link_to public_my_account_path do
|
|
=ic(:user)
|
|
Mon compte :
|
|
=current_p_customer.particular.firstname
|
|
=current_p_customer.particular.name
|
|
-else
|
|
=link_to ic(:user)+" Mon compte", public_my_account_path
|
|
|
|
%a{:href => "https://www.facebook.com/mamotosurcircuit/", :target => "_blank"}
|
|
=ic :"facebook-f"
|
|
.main-content
|
|
#logo
|
|
%a{:href => "/"}
|
|
%img.logo_top{:alt => "Ma moto sur circuit", :src => "/images/interface/Logo-DMD.png", :title => "Ma moto sur circuit"}/
|
|
%img.logo_scroll{:alt => "Ma moto sur circuit", :src => "/images/interface/logo_petit.png", :title => "Ma moto sur circuit"}/
|
|
%ul.menus
|
|
-MenuItem.where(:parent_id => nil, :menu_id => 1).order(:position).each do |menu_item|
|
|
-if menu_item_link(menu_item) and menu_item_link(menu_item) != ""
|
|
%li
|
|
=menu_item_link(menu_item)
|
|
|
|
-if false
|
|
%li
|
|
=link_to "Trouvez votre journée", public_m_events_path
|
|
|
|
%li
|
|
=link_to "Circuits", public_circuits_path, :class => ("active" if @circuits_active)
|
|
%li
|
|
=link_to "Organisateurs", public_organisateurs_path, :class => ("active" if @organisateurs_active)
|
|
%li
|
|
%a{:href => "https://www.dunlop.eu/fr_fr/motorcycle/dealers/find-a-dealer.html", :target => "_blank", :title => "Distributeurs"}
|
|
%span Distributeurs
|