uploads: add new source:<url> dupe check (fix #3873)
* On the /uploads/new page, instead of just showing a "This post has probably already been uploaded" message, show the actual thumbnails of posts having the same source as what the user is trying to upload. * Move the iqdb results section up top, beside the related posts section.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
<% if @matches.present? %>
|
||||
<h3>Similar</h3>
|
||||
<h3>Similar Posts</h3>
|
||||
<p class="hint">Found <%= pluralize(@matches.length, "similar post") %>:</p>
|
||||
|
||||
<% @matches.each do |match| %>
|
||||
<%= PostPresenter.preview(match["post"], :tags => "status:any", :similarity => match["score"], :size => true) %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<h3>Similar</h3>
|
||||
<p>No matches found</p>
|
||||
<h3>Similar Posts</h3>
|
||||
<p class="hint">No similar posts found.</p>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user