diff options
author | Joe Sak <joe@joesak.com> | 2011-06-13 20:23:40 -0700 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-06-13 20:23:40 -0700 |
commit | db821498767c05b1cc4cafa268593eac575597a0 (patch) | |
tree | 177fb3ced78f088bcf1ab54135f5497bc28abe64 /app/views | |
parent | b91b381e8eb6e5dc572ea4e53b138caba1a011fa (diff) | |
parent | a31f28126a0099fbf3f4f694c52b109e73c92e08 (diff) | |
download | refinerycms-blog-db821498767c05b1cc4cafa268593eac575597a0.tar.gz refinerycms-blog-db821498767c05b1cc4cafa268593eac575597a0.tar.bz2 refinerycms-blog-db821498767c05b1cc4cafa268593eac575597a0.zip |
Merge pull request #74 from wikyd/master
Add Paging to Category Show View
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/blog/categories/show.html.erb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/blog/categories/show.html.erb b/app/views/blog/categories/show.html.erb index 324c0fe..40444ec 100644 --- a/app/views/blog/categories/show.html.erb +++ b/app/views/blog/categories/show.html.erb @@ -1,10 +1,11 @@ <% 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') %> |