comments: change 'Show all comments' to 'Show N hidden comments'.

This commit is contained in:
evazion
2019-08-31 16:29:20 -05:00
parent be36968b6d
commit ee77b101af
2 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
<div class="row notices">
<% if post.comments.hidden(CurrentUser.user).any? || (page == :comments && post.comments.size > 6) %>
<span class="info" id="threshold-comments-notice-for-<%= post.id %>">
<%= link_to "Show all comments", comments_path(post_id: post.id), id: "show-all-comments-link", remote: true %>
<%= link_to "Show #{pluralize post.comments.hidden(CurrentUser.user).size, "hidden comment"}", comments_path(post_id: post.id), id: "show-all-comments-link", remote: true %>
</span>
<% end %>
</div>