changes to comment expansion link in comment listing

This commit is contained in:
albert
2011-09-14 17:55:32 -04:00
parent 348d801db9
commit b817da8d82
3 changed files with 2 additions and 28 deletions

View File

@@ -31,14 +31,9 @@
<% end %>
</div>
<div class="row notices">
<% if post.comments.count > 6 %>
<span class="info" id="hidden-comments-notice-for-<%= post.id %>"%>
<%= link_to "#{pluralize(post.comments.count - 6, 'more comment')}", comments_path(:post_id => post.id), :remote => true %>
</span>
<% end %>
<% if post.comments.hidden(CurrentUser.user).count > 0 %>
<span class="info" id="threshold-comments-notice-for-<%= post.id %>"%>
<%= link_to "#{pluralize(post.comments.hidden(CurrentUser.user).count, 'comment')} below threshold", comments_path(:post_id => post.id, :include_below_threshold => true), :remote => true %>
<%= link_to "Show all comments", comments_path(:post_id => post.id, :include_below_threshold => true), :remote => true %>
</span>
<% end %>
</div>