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

@@ -8,7 +8,7 @@
<%= link_to(image_tag(comment.post.preview_file_url), post_path(comment.post)) %>
<% end %>
</div>
<%= render partial: "comments/partials/show/comment", collection: [comment], locals: { dtext_data: DText.preprocess(@comments.map(&:body)) } %>
<%= render partial: "comments/partials/show/comment", collection: [comment], locals: { context: :index_by_comment, dtext_data: DText.preprocess(@comments.map(&:body)) } %>
<% end %>
<% end %>
<% end %>