Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix selected class for locale picker #1917

Merged
merged 1 commit into from

3 participants

@scambra

No description provided.

@travisbot

This pull request passes (merged 77a79c9 into ee52cdd).

@ugisozols ugisozols merged commit 0b1de8b into refinery:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 30, 2012
  1. Fix selected class for locale picker

    Sergio Cambra authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  pages/app/views/refinery/admin/pages/_locale_picker.html.erb
View
2  pages/app/views/refinery/admin/pages/_locale_picker.html.erb
@@ -2,7 +2,7 @@
<% if (locales ||= (Refinery::I18n.frontend_locales if Refinery.i18n_enabled?)).present? && locales.many? %>
<ul id='switch_locale_picker' class='clearfix'>
<% locales.each do |locale| %>
- <li<%= " class='selected'" if locale.to_s == local_assigns[:current_locale].to_s %>>
+ <li<%= " class='selected'".html_safe if locale.to_s == local_assigns[:current_locale].to_s %>>
<%= link_to refinery_icon_tag("flags/#{locale}.png", :size => "32x22"),
refinery.url_for(:switch_locale => locale) %>
</li>
Something went wrong with that request. Please try again.