* 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.
12 lines
386 B
Plaintext
12 lines
386 B
Plaintext
<% if @matches.present? %>
|
|
<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 Posts</h3>
|
|
<p class="hint">No similar posts found.</p>
|
|
<% end %>
|