diff options
author | Philip Arndt <git@arndt.io> | 2014-12-05 11:53:18 -0800 |
---|---|---|
committer | Philip Arndt <git@arndt.io> | 2014-12-05 11:53:18 -0800 |
commit | 50c4b236da7120674589c254b05f8e78f7d7e8b4 (patch) | |
tree | e696de404d22f38f03a767c6376d7198e433fbca /app/views | |
parent | 1cec6e540daa2a5971290dc33bae77ed35f5429a (diff) | |
parent | c5d248b280ca975579d3a09ae8b7253afa2b0752 (diff) | |
download | refinerycms-blog-50c4b236da7120674589c254b05f8e78f7d7e8b4.tar.gz refinerycms-blog-50c4b236da7120674589c254b05f8e78f7d7e8b4.tar.bz2 refinerycms-blog-50c4b236da7120674589c254b05f8e78f7d7e8b4.zip |
Merge pull request #402 from refinery/rspec-3-x
Rspec 3 x
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/refinery/blog/admin/categories/_category.html.erb | 10 | ||||
-rw-r--r-- | app/views/refinery/blog/admin/posts/_post.html.erb | 14 |
2 files changed, 15 insertions, 9 deletions
diff --git a/app/views/refinery/blog/admin/categories/_category.html.erb b/app/views/refinery/blog/admin/categories/_category.html.erb index c1cfa15..3f813f5 100644 --- a/app/views/refinery/blog/admin/categories/_category.html.erb +++ b/app/views/refinery/blog/admin/categories/_category.html.erb @@ -4,10 +4,14 @@ <span class="preview"> <% category.translations.each do |translation| %> <% if translation.title.present? %> - <%= link_to refinery_icon_tag("flags/#{translation.locale}.png", :size => '16x11'), - refinery.edit_blog_admin_category_path(category, :switch_locale => translation.locale), - :class => 'locale' %> + <%= link_to refinery.edit_blog_admin_category_path(category, :switch_locale => translation.locale), + :class => 'locale' do %> + <div class="locale_icon <%= translation.locale %>"> + <%= refinery_icon_tag('locale-blue.svg', :size => '24x24') %> + <span class="code"><%= translation.locale.upcase %></span> + </div> <% end %> + <% end %> <% end %> </span> </span> 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 @@ <span class='title'> <%= post.title.presence || post.translations.detect {|t| t.title.present?}.title %> <span class="preview"> - <% 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 %> + <div class="locale_icon <%= translation.locale %>"> + <%= refinery_icon_tag('locale-blue.svg', :size => '24x24') %> + <span class="code"><%= translation.locale.upcase %></span> + </div> + <% end %> <% end %> <%= post.published_at.try(:strftime, '%b %d, %Y') || 'draft' %> |