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

12 lines
612 B
Text
Raw Normal View History

.dropdown.locale-dropdown.header-menu-opener
%button.button.dropdown-button.icon-only.header-menu-button{ title: "Translate", aria: { expanded: 'false', controls: 'locale_menu' } }
2021-05-12 16:30:35 +02:00
.hidden Translate
= image_tag "icons/translate-icon.svg", alt: 'Translate', width: 24, height: 24, lazy: true, aria: { hidden: true }
%ul.header-menu.dropdown-content
2021-05-12 16:30:35 +02:00
%li
= link_to save_locale_path(locale: :en), method: :post, class: "menu-item menu-link" do
EN English
2021-05-12 16:30:35 +02:00
%li
= link_to save_locale_path(locale: :fr), method: :post, class: "menu-item menu-link" do
FR français