app/views/admin/pages/_page.html.erb in refinerycms-pages-0.9.9.20 vs app/views/admin/pages/_page.html.erb in refinerycms-pages-0.9.9.21
- old
+ new
@@ -3,10 +3,10 @@
<span class='title'>
<%= page.title_with_meta.html_safe %>
<% if defined?(::Refinery::I18n) and ::Refinery::I18n.frontend_locales.many? and
(locales = page.translations.map(&:locale)).present? %>
<span class='preview'>
- <% locales.each do |locale| %>
+ <% ([page.translation.try(:locale)] | locales).each do |locale| %>
<%= link_to refinery_icon_tag("flags/#{locale}.png", :size => '16x11'),
edit_admin_page_url(page, :switch_locale => locale),
:class => 'locale' %>
<% end %>
</span>