diff options
author | Jérémy FRERE <frere.jeremy@gmail.com> | 2013-05-11 14:13:23 +0200 |
---|---|---|
committer | Jérémy FRERE <frere.jeremy@gmail.com> | 2013-05-11 14:13:23 +0200 |
commit | fdfb316bedc371028c3f637b77b9e1a277ea26d4 (patch) | |
tree | 611e2dc9e72460711d05d954e617151a1ffb2fbb /app/views | |
parent | 8a41b59d6e6d0a44f2db7d4afba80f96dc342bed (diff) | |
download | refinerycms-blog-fdfb316bedc371028c3f637b77b9e1a277ea26d4.tar.gz refinerycms-blog-fdfb316bedc371028c3f637b77b9e1a277ea26d4.tar.bz2 refinerycms-blog-fdfb316bedc371028c3f637b77b9e1a277ea26d4.zip |
Uses I18n.localize instead of strftime for posts#archives title and no_articles message
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/refinery/blog/posts/archive.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
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 %> - <h1><%= t('.blog_archive_for', :date => @archive_date.strftime('%B %Y')) %></h1> + <h1><%= t('.blog_archive_for', :date => @date_title) %></h1> <% if @posts.any? %> <section id="blog_posts"> <%= render :partial => "/refinery/blog/shared/post", :collection => @posts %> </section> <% else %> - <p><%= t('.no_blog_articles_posted', :date => @archive_date.strftime('%B %Y')) %></p> + <p><%= t('.no_blog_articles_posted', :date => @date_title) %></p> <% end %> <% end %> |