Sha256: e0c5bb6355da62ea98e10303d06c876d5be2e101d3191cad2a5367d56250729c

Contents?: true

Size: 819 Bytes

Versions: 11

Compression:

Stored size: 819 Bytes

Contents

<input type="hidden" name="switch_locale" id="switch_locale" value="<%= local_assigns[:current_locale] %>" />
<% if Refinery::I18n.frontend_locales.many? %>
  <label><%= t('.language') %></label>
  <ul id="switch_locale_picker" class="clearfix">
    <% locales = Refinery::I18n.locales.clone %>
    <% Refinery::I18n.frontend_locales.each do |locale| %>
      <% locale_name = locales.delete(locale) %>
      <li<%= %Q{ class=selected} if locale.to_s == local_assigns[:current_locale].to_s %>>
        <%= link_to refinery.url_for(:switch_locale => locale, :parent_id => params[:parent_id]), id: locale do %>
          <div class="<%=locale %> locale_marker">
            <%= locale_text_icon(locale.upcase) %>
          </div>
          <%= locale_name %>
        <% end %>
      </li>
    <% end %>
  </ul>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-core-4.0.3 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-4.0.2 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-4.0.1 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-3.0.6 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-4.0.0 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-3.0.5 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-3.0.4 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-3.0.3 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-3.0.2 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-3.0.1 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-3.0.0 app/views/refinery/admin/_locale_picker.html.erb