From 25090af79268934542c5ba6b24a61e551ed8c40e Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 15 Oct 2011 13:03:50 -0400 Subject: [PATCH] fixed show all comments link not showing for comments > 6 posts --- app/views/comments/partials/index/_header.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/partials/index/_header.html.erb b/app/views/comments/partials/index/_header.html.erb index 7416c845e..674b5c6fb 100644 --- a/app/views/comments/partials/index/_header.html.erb +++ b/app/views/comments/partials/index/_header.html.erb @@ -31,7 +31,7 @@ <% end %>
- <% if post.comments.hidden(CurrentUser.user).count > 0 %> + <% if post.comments.hidden(CurrentUser.user).count > 0 || post.comments.count > 6 %> <%= link_to "Show all comments", comments_path(:post_id => post.id, :include_below_threshold => true), :remote => true %>