kaps_app/app/views/layouts/public.html.haml
2020-01-11 15:28:56 +01:00

80 lines
2.5 KiB
Plaintext

-@products_controllers = ["ProductOrdersController", "ProductsController","ProductCategoriesController", "ProductCustomersController", "ProductCustomersAuthsController" ]
-@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/280/large_medium_shutterstock_64985671_0__-_copie.jpg"
!!!
- @social_url = @social_url || request.url.to_s
-if @description and @description == ""
- @description = qit "SEO texte description par défaut",""
%html{:lang => "fr", "xml:lang" => "fr", :xmlns => "http://www.w3.org/1999/xhtml"}
%head
-@title = strip_tags(@title.to_s)
%title=@title.to_s+" - KapsMe"
%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 }
= 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=Lato:400,900|Roboto+Slab:400,700" rel="stylesheet">
%body
#header
.right{:style => "text-align:right;"}
-if current_p_customer
=link_to ic(:user)+" Mon compte", public_my_account_path
="-"
=link_to ic(:"power-off")+" Déconnexion", logout_public_p_customer_auths_path()
%br
=link_to "Mes Kaps", public_kaps_path()
="-"
=link_to "Jours", public_kaps_days_path()
="-"
=link_to "Mes amis", public_p_friends_path()
-else
=link_to ic(:"power-off")+" Connexion", new_public_p_customer_auth_path
=link_to image_tag("/logo.png", :id => "logo"), today_public_kaps_days_path
.clear
-if flash[:error] or flash[:notice] or flash[:alert]
.flashs
-if flash[:error]
.error
%span.remove=ic :times
=flash[:error]
-if flash[:notice]
.notice
%span.remove=ic :times
=flash[:notice]
-if flash[:alert]
.alert
%span.remove=ic :times
=flash[:alert]
=yield
#footer
:javascript
resize()