Files
danbooru/app/views/iqdb_queries/_matches.html.erb
evazion f7116ad1c4 post previews: fix thumbnail width/height outside post index.
Normally thumbnails have a fixed size of 154x154, but that's not always
desirable outside of the posts index because it creates empty gaps
around thumbnails.
2019-10-14 21:16:04 -05:00

12 lines
402 B
Plaintext

<% if @matches.present? %>
<h3>Similar Posts</h3>
<p class="fineprint">Found <%= pluralize(@matches.length, "similar post") %>:</p>
<% @matches.each do |match| %>
<%= PostPresenter.preview(match["post"], tags: "status:any", similarity: match["score"], size: true, compact: true) %>
<% end %>
<% else %>
<h3>Similar Posts</h3>
<p class="fineprint">No similar posts found.</p>
<% end %>