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.
27 lines
975 B
Plaintext
27 lines
975 B
Plaintext
<div class="iqdb-posts">
|
|
<h2>Similar Posts</h2>
|
|
|
|
<p class="fineprint">
|
|
<% if @high_similarity_matches.blank? %>
|
|
No similar posts found.
|
|
<% end %>
|
|
|
|
<% if @low_similarity_matches.present? %>
|
|
Found <%= pluralize(@low_similarity_matches.length, "low similarity match") %>
|
|
(<%= link_to "show", "#", class: "toggle-iqdb-posts-low-similarity" %><%= link_to "hide", "#", class: "toggle-iqdb-posts-low-similarity", style: "display: none" %>)
|
|
<% end %>
|
|
</p>
|
|
|
|
<span class="iqdb-posts-high-similarity">
|
|
<% @high_similarity_matches.each do |match| %>
|
|
<%= PostPresenter.preview(match["post"], show_deleted: true, similarity: match["score"], size: true) %>
|
|
<% end %>
|
|
</span>
|
|
|
|
<span class="iqdb-posts-low-similarity" style="display: none">
|
|
<% @low_similarity_matches.each do |match| %>
|
|
<%= PostPresenter.preview(match["post"], show_deleted: true, similarity: match["score"], size: true) %>
|
|
<% end %>
|
|
</span>
|
|
</div>
|