diff options
author | Kyle Wilkinson <kai@wikyd.org> | 2011-06-13 18:06:26 -0700 |
---|---|---|
committer | Kyle Wilkinson <kai@wikyd.org> | 2011-06-13 18:06:26 -0700 |
commit | 9310b4176047dc24fce5841237441882ffee2e2f (patch) | |
tree | 14307099094f7853b268517ad1198e6c963a0f87 /app/views/blog | |
parent | b91b381e8eb6e5dc572ea4e53b138caba1a011fa (diff) | |
download | refinerycms-blog-9310b4176047dc24fce5841237441882ffee2e2f.tar.gz refinerycms-blog-9310b4176047dc24fce5841237441882ffee2e2f.tar.bz2 refinerycms-blog-9310b4176047dc24fce5841237441882ffee2e2f.zip |
Modify the category view of the blog to show a paged view, rather than all blog posts.
Diffstat (limited to 'app/views/blog')
-rw-r--r-- | app/views/blog/categories/show.html.erb | 13 |
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 %> |