Retrospring/app/views/shared/_locales.haml

13 lines
361 B
Plaintext
Raw Normal View History

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