Fix #4525: Show mod report notices next to reported content.
This commit is contained in:
@@ -27,7 +27,9 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= render "forum_posts/listing", forum_posts: @forum_posts, original_forum_post_id: @forum_topic.original_post&.id, dtext_data: DText.preprocess(@forum_posts.map(&:body)), moderation_reports: @forum_topic.moderation_reports.visible(CurrentUser.user).recent %>
|
||||
<div class="list-of-forum-posts list-of-messages">
|
||||
<%= render ForumPostComponent.with_collection(@forum_posts, forum_topic: @forum_topic, current_user: CurrentUser.user) %>
|
||||
</div>
|
||||
|
||||
<% if policy(ForumPost.new(topic: @forum_topic)).create? %>
|
||||
<p><%= link_to "Post reply", new_forum_post_path(topic_id: @forum_topic.id), id: "new-response-link" %></p>
|
||||
|
||||
Reference in New Issue
Block a user