Sha256: 014378899b612d61a13781787c953cfe2258c62cf2376869fde02947f6fd75c7

Contents?: true

Size: 573 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/dropdown/_locale.html.erb
headmin-0.6.2 app/views/headmin/dropdown/_locale.html.erb
headmin-0.6.1 app/views/headmin/dropdown/_locale.html.erb
headmin-0.6.0 app/views/headmin/dropdown/_locale.html.erb
headmin-0.5.9 app/views/headmin/dropdown/_locale.html.erb
headmin-0.5.8 app/views/headmin/dropdown/_locale.html.erb
headmin-0.5.7 app/views/headmin/dropdown/_locale.html.erb
headmin-0.5.6 app/views/headmin/dropdown/_locale.html.erb
headmin-0.5.5 app/views/headmin/dropdown/_locale.html.erb
headmin-0.5.4 app/views/headmin/dropdown/_locale.html.erb
headmin-0.5.3 app/views/headmin/dropdown/_locale.html.erb