Sha256: 9e3a6b2071790c11b03dbe443b5e657d169e33da07c50a88326064bff33f6e1c

Contents?: true

Size: 876 Bytes

Versions: 1

Compression:

Stored size: 876 Bytes

Contents

.languages_bar
  .f32
    - @locales.each do |locale|
      - service_path = params.fetch(:service_path, nil)
      - if service_path.nil?
        = link_to params.merge(locale: locale.to_s), class: ['flag_link tooltipster', (I18n.locale == locale) ? 'active' : nil], title: I18n.t(locale, scope: [:languages]), data: { tooltipster: { side: 'right'}.to_json }
          = flag WorldFlags.locale_flag_map[locale] || locale, title: I18n.t(locale, scope: [:languages])
      - else
        - link = I18n.default_locale == locale ? "/#{service_path}" : "/#{locale}/#{service_path}"
        = link_to link, class: ['flag_link tooltipster', (I18n.locale == locale) ? 'active' : nil], title: I18n.t(locale, scope: [:languages]), data: { tooltipster: { side: 'right'}.to_json }
          = flag WorldFlags.locale_flag_map[locale] || locale, title: I18n.t(locale, scope: [:languages])

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/cells/shared/locale_menu.html.slim