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:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<%= table_for @commentaries, width: "100%" do |t| %>
|
<%= table_for @commentaries, width: "100%" do |t| %>
|
||||||
<% t.column "Post", width: "1%" do |commentary| %>
|
<% t.column "Post", width: "1%" do |commentary| %>
|
||||||
<%= PostPresenter.preview(commentary.post, :tags => "status:any") %>
|
<%= PostPresenter.preview(commentary.post, show_deleted: true) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% t.column "Original" do |commentary| %>
|
<% t.column "Original" do |commentary| %>
|
||||||
<%= format_commentary_title(commentary.original_title) %>
|
<%= format_commentary_title(commentary.original_title) %>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<%= table_for @commentary_versions, {class: "striped", width: "100%"} do |t| %>
|
<%= table_for @commentary_versions, {class: "striped", width: "100%"} do |t| %>
|
||||||
<% if listing_type(:post_id) == :standard %>
|
<% if listing_type(:post_id) == :standard %>
|
||||||
<% t.column "Post", width: "1%" do |commentary_version| %>
|
<% t.column "Post", width: "1%" do |commentary_version| %>
|
||||||
<%= PostPresenter.preview(commentary_version.post, :tags => "status:any") %>
|
<%= PostPresenter.preview(commentary_version.post, show_deleted: true) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if listing_type(:post_id) == :standard %>
|
<% if listing_type(:post_id) == :standard %>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<ul id="sortable">
|
<ul id="sortable">
|
||||||
<% @favorite_group.posts.limit(1_000).each do |post| %>
|
<% @favorite_group.posts.limit(1_000).each do |post| %>
|
||||||
<li class="ui-state-default" id="favorite_group[post_ids]_<%= post.id %>">
|
<li class="ui-state-default" id="favorite_group[post_ids]_<%= post.id %>">
|
||||||
<%= PostPresenter.preview(post).presence || "Hidden: Post ##{post.id}" %>
|
<%= PostPresenter.preview(post, show_deleted: true).presence || "Hidden: Post ##{post.id}" %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -14,13 +14,13 @@
|
|||||||
|
|
||||||
<span class="iqdb-posts-high-similarity">
|
<span class="iqdb-posts-high-similarity">
|
||||||
<% @high_similarity_matches.each do |match| %>
|
<% @high_similarity_matches.each do |match| %>
|
||||||
<%= PostPresenter.preview(match["post"], tags: "status:any", similarity: match["score"], size: true) %>
|
<%= PostPresenter.preview(match["post"], show_deleted: true, similarity: match["score"], size: true) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="iqdb-posts-low-similarity" style="display: none">
|
<span class="iqdb-posts-low-similarity" style="display: none">
|
||||||
<% @low_similarity_matches.each do |match| %>
|
<% @low_similarity_matches.each do |match| %>
|
||||||
<%= PostPresenter.preview(match["post"], tags: "status:any", similarity: match["score"], size: true) %>
|
<%= PostPresenter.preview(match["post"], show_deleted: true, similarity: match["score"], size: true) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<h1>Ban Post</h1>
|
<h1>Ban Post</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= PostPresenter.preview(@post, :tags => "status:any") %>
|
<%= PostPresenter.preview(@post, show_deleted: true) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= form_tag(ban_moderator_post_post_path(@post), :style => "clear: both;", :class => "simple_form") do %>
|
<%= form_tag(ban_moderator_post_post_path(@post), :style => "clear: both;", :class => "simple_form") do %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<h1>Delete Post</h1>
|
<h1>Delete Post</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= PostPresenter.preview(@post, :tags => "status:any") %>
|
<%= PostPresenter.preview(@post, show_deleted: true) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= form_tag(delete_moderator_post_post_path, :style => "clear: both;", :class => "simple_form") do %>
|
<%= form_tag(delete_moderator_post_post_path, :style => "clear: both;", :class => "simple_form") do %>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<h1>Move Favorites to Parent</h1>
|
<h1>Move Favorites to Parent</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= PostPresenter.preview(@post, :tags => "status:any") %>
|
<%= PostPresenter.preview(@post, show_deleted: true) %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p style="clear: both;">This will move all the post's favorites to its parent post. Are you sure?</p>
|
<p style="clear: both;">This will move all the post's favorites to its parent post. Are you sure?</p>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<ul id="sortable">
|
<ul id="sortable">
|
||||||
<% @pool.posts.each do |post| %>
|
<% @pool.posts.each do |post| %>
|
||||||
<li class="ui-state-default" id="pool[post_ids]_<%= post.id %>">
|
<li class="ui-state-default" id="pool[post_ids]_<%= post.id %>">
|
||||||
<%= PostPresenter.preview(post).presence || "Hidden: Post ##{post.id}" %>
|
<%= PostPresenter.preview(post, show_deleted: true).presence || "Hidden: Post ##{post.id}" %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<%= table_for @post_appeals, width: "100%" do |t| %>
|
<%= table_for @post_appeals, width: "100%" do |t| %>
|
||||||
<% t.column "Post", width: "1%" do |post_appeal| %>
|
<% t.column "Post", width: "1%" do |post_appeal| %>
|
||||||
<%= PostPresenter.preview(post_appeal.post, :tags => "status:any") %>
|
<%= PostPresenter.preview(post_appeal.post, show_deleted: true) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% t.column "Reason" do |post_appeal| %>
|
<% t.column "Reason" do |post_appeal| %>
|
||||||
<span class="prose">
|
<span class="prose">
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<%= table_for @post_approvals, width: "100%" do |t| %>
|
<%= table_for @post_approvals, width: "100%" do |t| %>
|
||||||
<% t.column "Post", width: "1%" do |post_approval| %>
|
<% t.column "Post", width: "1%" do |post_approval| %>
|
||||||
<%= PostPresenter.preview(post_approval.post, :tags => "status:any") %>
|
<%= PostPresenter.preview(post_approval.post, show_deleted: true) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% t.column "Approver", width: "15%" do |post_approval| %>
|
<% t.column "Approver", width: "15%" do |post_approval| %>
|
||||||
<%= link_to_user post_approval.user %>
|
<%= link_to_user post_approval.user %>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<%= table_for @post_flags, width: "100%" do |t| %>
|
<%= table_for @post_flags, width: "100%" do |t| %>
|
||||||
<% t.column "Post", width: "1%" do |post_flag| %>
|
<% t.column "Post", width: "1%" do |post_flag| %>
|
||||||
<%= PostPresenter.preview(post_flag.post, :tags => "status:any") %>
|
<%= PostPresenter.preview(post_flag.post, show_deleted: true) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% t.column "Reason" do |post_flag| %>
|
<% t.column "Reason" do |post_flag| %>
|
||||||
<span class="prose">
|
<span class="prose">
|
||||||
|
|||||||
Reference in New Issue
Block a user