From f5118848fc971ed9fcd8f501def89f4db65875cd Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Thu, 4 Dec 2014 09:04:29 -0800 Subject: Upgrade translation picker API. --- app/views/refinery/blog/admin/posts/_post.html.erb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'app') diff --git a/app/views/refinery/blog/admin/posts/_post.html.erb b/app/views/refinery/blog/admin/posts/_post.html.erb index eb9cc9d..6457c7b 100644 --- a/app/views/refinery/blog/admin/posts/_post.html.erb +++ b/app/views/refinery/blog/admin/posts/_post.html.erb @@ -2,12 +2,14 @@ <%= post.title.presence || post.translations.detect {|t| t.title.present?}.title %> - <% post.translations.each do |translation| %> - <% if translation.title.present? %> - <%= link_to refinery_icon_tag("flags/#{translation.locale}.png", :size => '16x11'), - refinery.edit_blog_admin_post_path(post, :switch_locale => translation.locale), - :class => 'locale' %> - <% end %> + <% post.translations.reject {|t| t.title.blank? }.each do |translation| %> + <%= link_to refinery.edit_blog_admin_post_path(post, :switch_locale => translation.locale), + :class => 'locale' do %> +
+ <%= refinery_icon_tag('locale-blue.svg', :size => '24x24') %> + <%= translation.locale.upcase %> +
+ <% end %> <% end %> <%= post.published_at.try(:strftime, '%b %d, %Y') || 'draft' %> -- cgit v1.2.3