Sha256: b79380a9ffe2a008ad6768022832c8f6540839299975ac66b71072127c3e1e98

Contents?: true

Size: 622 Bytes

Versions: 18

Compression:

Stored size: 622 Bytes

Contents

<%#
    headmin/layout/sidebar/menu/locale
    accepts block: no
    parameters: none
%>

<%= render 'headmin/dropdown', class: 'nav-item' do %>
  <%= render 'headmin/dropdown/button', class: 'nav-link', id: 'nav-item-locale' do %>
    <%= bootstrap_icon('globe', class: 'me-2') %>
    <%= t('language_name', locale: ::I18n.locale) %>
  <% end %>
  <%= render 'headmin/dropdown/list', id: 'nav-item-locale' 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

18 entries across 18 versions & 1 rubygems

Version Path
headmin-0.2.9 app/views/headmin/nav/item/_locale.html.erb
headmin-0.5.2 app/views/headmin/nav/item/_locale.html.erb
headmin-0.4.2 app/views/headmin/nav/item/_locale.html.erb
headmin-0.4.1 app/views/headmin/nav/item/_locale.html.erb
headmin-0.4.0 app/views/headmin/nav/item/_locale.html.erb
headmin-0.3.4 app/views/headmin/nav/item/_locale.html.erb
headmin-0.3.3 app/views/headmin/nav/item/_locale.html.erb
headmin-0.3.2 app/views/headmin/nav/item/_locale.html.erb
headmin-0.3.1 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.8 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.7 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.6 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.5 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.4 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.3 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.2 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.1 app/views/headmin/nav/item/_locale.html.erb
headmin-0.2.0 app/views/headmin/nav/item/_locale.html.erb