refactor iqdb endpoints
This commit is contained in:
9
app/views/iqdb_queries/_matches.html.erb
Normal file
9
app/views/iqdb_queries/_matches.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<% if @matches.present? %>
|
||||
<h3>Similar</h3>
|
||||
<% @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>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user