demarches-normaliennes/app/views/layouts/_navbar.html.haml

22 lines
1.1 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.col-xs-2
%a#title-navbar{ href: root_path }
.row#home
.col-lg-6.no-padding
= image_tag('marianne.svg', class: 'logo')
.col-lg-6.no-padding#tps-title
= APPLICATION_NAME
.col-xs-10.no-padding
#navbar-body
.row
%div{ style: "max-width: 50%; position: absolute; display: flex; flex-direction: column; justify-content: center; height: 60px; line-height: 20px; z-index: 2;" }
%span
👉 Besoin daide ? Consultez <a target="_blank" rel="noopener" href="#{DOC_URL}">la documentation</a> et <a target="_blank" rel="noopener" href="#{FAQ_URL}">laide</a>, contactez-nous par <a style="cursor:hand" onclick="$crisp.push(['do', 'chat:open'])">chat</a> ou <a href="#{contact_admin_path}" target="_blank" rel="noopener">email</a>, ou <a target="_blank" rel="noopener" href="#{CALENDLY_URL}">prenez RDV</a>.
-# BEST WTF EVER
-# this begin rescue hides potentials bugs by displaying another navbar
- begin
= render partial: @navbar_url
- rescue
= render partial: 'layouts/navbars/navbar_default'
= render partial: 'layouts/navbars/navbar_log_options'