Merge branch 'iqdb'

This commit is contained in:
r888888888
2014-03-24 13:35:07 -07:00
24 changed files with 335 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<% if @download.similar_posts %>
<h3>Similar</h3>
<% @download.similar_posts.each do |similar| %>
<%= PostPresenter.preview(Post.find(similar.post_id)) %>
<% end %>
<% end %>

View File

@@ -59,6 +59,12 @@
<%= f.text_field :parent_id %>
</div>
<% if false && Danbooru.config.iqdb_hostname_and_port && params[:url] %>
<div class="input" id="iqdb-similar">
<p><em>Loading similar...</em></p>
</div>
<% end %>
<div class="input">
<div>
<%= f.label :tag_string, "Tags" %>