aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/blog/categories/show.html.erb13
1 files changed, 6 insertions, 7 deletions
diff --git a/app/views/blog/categories/show.html.erb b/app/views/blog/categories/show.html.erb
index 324c0fe..caecbfd 100644
--- a/app/views/blog/categories/show.html.erb
+++ b/app/views/blog/categories/show.html.erb
@@ -1,14 +1,13 @@
<% content_for :body_content_title, @category.title %>
<% content_for :body_content_left do %>
- <% if @category.posts.any? %>
- <article id="blog_posts">
- <%= render :partial => "/blog/shared/post", :collection => @category.posts %>
- </article>
+ <% if @blog_posts.any? %>
+ <section id="blog_posts">
+ <%= render :partial => "/blog/shared/post", :collection => @blog_posts %>
+ <%= will_paginate @blog_posts %>
+ </section>
<% else %>
- <p>
- <%= t('.no_posts') %>
- </p>
+ <p><%= t('.no_blog_articles_yet') %></p>
<% end %>
<% end %>