From fdfb316bedc371028c3f637b77b9e1a277ea26d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20FRERE?= Date: Sat, 11 May 2013 14:13:23 +0200 Subject: Uses I18n.localize instead of strftime for posts#archives title and no_articles message --- app/views/refinery/blog/posts/archive.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views') diff --git a/app/views/refinery/blog/posts/archive.html.erb b/app/views/refinery/blog/posts/archive.html.erb index 31b5c1e..86a648c 100644 --- a/app/views/refinery/blog/posts/archive.html.erb +++ b/app/views/refinery/blog/posts/archive.html.erb @@ -1,13 +1,13 @@ -<% content_for :title, "#{t('.blog_archive_for', :date => @archive_date.strftime('%B %Y'))}" %> +<% content_for :title, "#{t('.blog_archive_for', :date => @date_title)}" %> <% content_for :body do %> -

<%= t('.blog_archive_for', :date => @archive_date.strftime('%B %Y')) %>

+

<%= t('.blog_archive_for', :date => @date_title) %>

<% if @posts.any? %>
<%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>
<% else %> -

<%= t('.no_blog_articles_posted', :date => @archive_date.strftime('%B %Y')) %>

+

<%= t('.no_blog_articles_posted', :date => @date_title) %>

<% end %> <% end %> -- cgit v1.2.3