Sha256: 69cbe41581b4cba09fe680c9e90a30fecde70eea593692dc489dfaec49ce3b2a

Contents?: true

Size: 549 Bytes

Versions: 6

Compression:

Stored size: 549 Bytes

Contents

<input type="hidden" name="switch_locale" id="switch_locale" value="<%= local_assigns[:current_locale] %>" />
<% if Refinery::I18n.frontend_locales.many? %>
  <ul id="switch_locale_picker" class="clearfix">
    <% Refinery::I18n.frontend_locales.each do |locale| %>
      <li<%= %Q{ class=selected} if locale.to_s == local_assigns[:current_locale].to_s %>>
        <%= link_to refinery_icon_tag(%Q{flags/#{locale}.png}, :size => '32x22'),
                    refinery.url_for(:switch_locale => locale) %>
      </li>
    <% end %>
  </ul>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-core-2.1.5 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-2.1.4 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-2.1.3 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-2.1.2 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-2.1.1 app/views/refinery/admin/_locale_picker.html.erb
refinerycms-core-2.1.0 app/views/refinery/admin/_locale_picker.html.erb