Skip to content

Commit

Permalink
Update _locale_filters.html.erb
Browse files Browse the repository at this point in the history
prevent flag to make unreadable links
  • Loading branch information
Marie-Helene Tremblay committed May 15, 2015
1 parent 2e35c2a commit 83fc70f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -5,7 +5,7 @@
<% current_locale = @current_locale %>
<% current_locale_title = locales[current_locale] %>
<li>
<%= link_to "#", :style => "background-image: url('#{asset_path "refinery/icons/flags/#{current_locale}.png"}');" do %>
<%= link_to "#", :style => "background-image: url('#{asset_path "refinery/icons/flags/#{current_locale}.png"}') no-repeat 1px;padding-left:23px;" do %>
<%= current_locale_title.respond_to?(:force_encoding) ?
current_locale_title.force_encoding('utf-8') : current_locale_title %>
<span><%= t('.change_language') %></span>
Expand All @@ -17,7 +17,7 @@
<% locales.sort_by{|key, value| value}.each do |locale, locale_title| %>
<li>
<%= link_to locale_title, refinery.copywriting_admin_phrases_path(:switch_locale => locale),
:style => "background-image: url('#{asset_path "refinery/icons/flags/#{locale}.png"}');" %>
:style => "background-image: url('#{asset_path "refinery/icons/flags/#{locale}.png"}') no-repeat 1px;padding-left:23px;" %>
</li>
<% end %>
</ul>

0 comments on commit 83fc70f

Please sign in to comment.