Skip to content

Commit

Permalink
Wrap flag icons in span.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Jun 11, 2012
1 parent 42d41e0 commit a7a69b2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pages/app/views/refinery/admin/pages/_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
<%= page.title_with_meta.html_safe %>
</span>
<% if Refinery.i18n_enabled? and Refinery::I18n.frontend_locales.many? %>
<% page.translations.each do |translation| %>
<%= link_to refinery_icon_tag("flags/#{translation.locale}.png", :size => '16x11'),
refinery.edit_admin_page_path(page, :switch_locale => translation.locale),
:class => 'locale' if translation.title.present? %>
<% end %>
<span class='locales'>
<% page.translations.each do |translation| %>
<%= link_to refinery_icon_tag("flags/#{translation.locale}.png", :size => '16x11'),
refinery.edit_admin_page_path(page, :switch_locale => translation.locale),
:class => 'locale' if translation.title.present? %>
<% end %>
</span>
<% end %>

<span class='actions'>
Expand Down

0 comments on commit a7a69b2

Please sign in to comment.