comments: add reply/vote links to comment search page (#4236).

This commit is contained in:
evazion
2019-12-30 22:40:56 -06:00
parent 7da85a4eb7
commit e02a145da2
4 changed files with 31 additions and 26 deletions

View File

@@ -13,7 +13,7 @@
<div class="list-of-comments list-of-messages">
<% if comments.present? %>
<%= render partial: "comments/partials/show/comment", collection: comments, locals: { dtext_data: DText.preprocess(comments.map(&:body)) } %>
<%= render partial: "comments/partials/show/comment", collection: comments, locals: { context: :index_by_post, dtext_data: DText.preprocess(comments.map(&:body)) } %>
<% elsif post.last_commented_at.present? %>
<p>There are no visible comments.</p>
<% else %>