Skip to content

Commit

Permalink
Merge d9f580f into 90a44fc
Browse files Browse the repository at this point in the history
  • Loading branch information
takacszoltansandor committed Nov 14, 2017
2 parents 90a44fc + d9f580f commit e5d242b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/app/views/refinery/admin/pages/_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<% if Refinery::I18n.frontend_locales.many? %>
<span class='locales'>
<% page.translations.sort_by{ |t| Refinery::I18n.frontend_locales.index(t.locale)}.each do |translation| %>
<% page.translations.sort_by{ |t| Refinery::I18n.frontend_locales.index(t.locale).to_i }.each do |translation| %>
<% if translation.title.present? %>
<%= link_to refinery.admin_edit_page_path(page.nested_url, switch_locale: translation.locale),
class: 'locale', title: translation.locale.upcase do %>
Expand Down

0 comments on commit e5d242b

Please sign in to comment.