demarches-normaliennes/app/views/layouts/_new_header.haml

29 lines
1.2 KiB
Text
Raw Normal View History

2017-06-22 14:56:59 +02:00
.new-header{ class: current_page?(root_path) ? nil : "new-header-with-border" }
2017-04-04 14:37:16 +02:00
.header-inner-content
= link_to root_path do
%img.header-logo{ src: image_url("header/logo-tps.svg") }
2017-04-04 14:37:16 +02:00
2017-06-22 14:56:59 +02:00
%ul.header-right-content
- if gestionnaire_signed_in?
%li
.header-search
= form_tag backoffice_dossiers_search_url, method: :get, class: "form" do
= text_field_tag "q", "#{@search_terms unless @search_terms.nil?}", placeholder: "Rechercher"
%button{ title: "Rechercher" }
= image_tag "icons/search-blue.svg"
2017-06-22 16:45:57 +02:00
%li
.header-menu-opener
= image_tag "icons/account-circle.svg", onclick: "javascript:TPS.toggleHeaderMenu(event);", title: "Mon compte"
%ul.header-menu
%li
.menu-item{ title: current_email }
= current_email
%li
= link_to destroy_user_session_path, method: :delete, class: "menu-item menu-link" do
= image_tag "icons/sign-out.svg"
Se déconnecter
2017-06-22 14:56:59 +02:00
- elsif request.path != new_user_session_path
%li
2017-06-26 11:40:28 +02:00
= link_to "Connexion", new_user_session_path, class: "button secondary"