Sha256: 514c9550e40f0c174d2ff50a07a1a436e92c89f9f0e159cc4ce2cb59cb229d8a

Contents?: true

Size: 573 Bytes

Versions: 2

Compression:

Stored size: 573 Bytes

Contents

<%#
    headmin/dropdown/locale
    accepts block: no
    parameters: none
%>

<%= render "headmin/dropdown" do %>
  <%= render "headmin/dropdown/button", id: 'locale-dropdown' do %>
    <%= bootstrap_icon('globe', class: 'me-2') %>
    <%= t('language_name', locale: ::I18n.locale) %>
  <% end %>
  <%= render "headmin/dropdown/list", id: 'locale-dropdown' do %>
    <% I18n.available_locales.each do |locale| %>
      <%= render "headmin/dropdown/item", name: t('language_name', locale: locale), url: url_for({locale: locale.to_s}) %>
    <% end %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
headmin-0.5.1 app/views/headmin/dropdown/_locale.html.erb
headmin-0.5.0 app/views/headmin/dropdown/_locale.html.erb