diff options
author | djones <dgjones@gmail.com> | 2010-09-21 17:20:08 +1200 |
---|---|---|
committer | djones <dgjones@gmail.com> | 2010-09-21 17:20:08 +1200 |
commit | f036f2a46f5c085505aff507f54518df8e283069 (patch) | |
tree | 5dd5bd48059066ceb0fef489d33e42d93e15c5df /app/views/blog/shared/_categories.html.erb | |
parent | 18b2db513d5241738135cfd330e730c63abec277 (diff) | |
download | refinerycms-blog-f036f2a46f5c085505aff507f54518df8e283069.tar.gz refinerycms-blog-f036f2a46f5c085505aff507f54518df8e283069.tar.bz2 refinerycms-blog-f036f2a46f5c085505aff507f54518df8e283069.zip |
added publish date support. fixes bug where categories were showing posts that were technically supposed to be hidden from the end user
Diffstat (limited to 'app/views/blog/shared/_categories.html.erb')
-rw-r--r-- | app/views/blog/shared/_categories.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/blog/shared/_categories.html.erb b/app/views/blog/shared/_categories.html.erb index fa26ceb..305e731 100644 --- a/app/views/blog/shared/_categories.html.erb +++ b/app/views/blog/shared/_categories.html.erb @@ -2,7 +2,7 @@ <ul id='categories'> <% @blog_categories.each do |category| %> <li<%= " class='selected'" if @category.present? and @category.id == category.id %>> - <%= link_to "#{category.title} (#{category.posts.count})", blog_category_url(category) %> + <%= link_to "#{category.title} (#{category.post_count})", blog_category_url(category) %> </li> <% end %> </ul>
\ No newline at end of file |