PostPresenter.preview: standardize on show_deleted: true.

Standardize on using `show_deleted: true` instead of `tags: "status:any"`
when rendering thumbnails and we want to show deleted thumbnails.

Also fixes it so that deleted thumbnails are shown when reordering pools
and favorite groups.
This commit is contained in:
evazion
2020-02-18 18:43:46 -06:00
parent 1244e02fe2
commit 72e56d8856
11 changed files with 12 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
<h1>Ban Post</h1>
<div>
<%= PostPresenter.preview(@post, :tags => "status:any") %>
<%= PostPresenter.preview(@post, show_deleted: true) %>
</div>
<%= form_tag(ban_moderator_post_post_path(@post), :style => "clear: both;", :class => "simple_form") do %>

View File

@@ -1,7 +1,7 @@
<h1>Delete Post</h1>
<div>
<%= PostPresenter.preview(@post, :tags => "status:any") %>
<%= PostPresenter.preview(@post, show_deleted: true) %>
</div>
<%= form_tag(delete_moderator_post_post_path, :style => "clear: both;", :class => "simple_form") do %>

View File

@@ -1,7 +1,7 @@
<h1>Move Favorites to Parent</h1>
<div>
<%= PostPresenter.preview(@post, :tags => "status:any") %>
<%= PostPresenter.preview(@post, show_deleted: true) %>
</div>
<p style="clear: both;">This will move all the post's favorites to its parent post. Are you sure?</p>