diff options
Diffstat (limited to 'app/views/blog/posts')
-rw-r--r-- | app/views/blog/posts/archive.html.erb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/blog/posts/archive.html.erb b/app/views/blog/posts/archive.html.erb index abeb0c1..d44aa7f 100644 --- a/app/views/blog/posts/archive.html.erb +++ b/app/views/blog/posts/archive.html.erb @@ -1,11 +1,13 @@ <% content_for :body_content_left do %> <%= @page[Page.default_parts.first.to_sym] %> - <h1>Blog Archive for <%= @archive_date.strftime('%B %Y') %></h1> - <section id="blog_posts"> - <%= render :partial => "/blog/shared/post", :collection => @blog_posts %> - </section> - <%= "There are no blog articles posted for #{@archive_date.strftime('%B %Y')}. Stay tuned." unless @blog_posts.any? %> - <%# TODO: Add locale logic here - hubble is a n00b at that %> + <h1><%= t('.blog_archive_for', :date => @archive_date.strftime('%B %Y')) %></h1> + <% if @blog_posts.any? %> + <section id="blog_posts"> + <%= render :partial => "/blog/shared/post", :collection => @blog_posts %> + </section> + <% else %> + <p><%= t('.no_blog_articles_posted', :date => @archive_date.strftime('%B %Y')) %></p> + <% end %> <% end %> <% content_for :body_content_right do %> |