retrospring/app/views/shared/_locales.haml

13 lines
361 B
Text
Raw Permalink Normal View History

2022-01-23 21:36:33 +01:00
.container.d-print-none
2015-06-21 09:03:29 +02:00
.locales
%span
2020-05-10 10:02:04 +02:00
%a{ href: '#', id: 'locale-switch' }
2015-06-21 09:03:29 +02:00
%i.fa.fa-globe
= t('views.locale.languages')
2020-05-10 10:02:04 +02:00
.locales__panel#locales-panel
2015-06-21 09:03:29 +02:00
%ul
- APP_LOCALES.each do |key, value|
%li
2020-05-10 10:02:04 +02:00
.flag{ class: "flag-#{value[1]}" }
2021-12-31 19:23:32 +01:00
%a{ href: "?hl=#{key}", rel: 'nofollow' }= value[0]