Add a thumbnail view to the /media_assets page. This page lets you see all images uploaded to Danbooru by all users (although you can't see who the uploader is). Also add a link to this page in the subnav bar on the upload page.
24 lines
816 B
Plaintext
24 lines
816 B
Plaintext
<% page_title "Similar Images Search" %>
|
|
<% noindex if params[:search].present? %>
|
|
|
|
<div id="c-iqdb-queries">
|
|
<div id="a-check">
|
|
<h1>Reverse Images Search</h1>
|
|
<section>
|
|
<p>Paste a URL or upload a file to perform a reverse image search on <%= Danbooru.config.app_name %>.</p>
|
|
|
|
<%= search_form_for(iqdb_queries_path, method: :post) do |f| %>
|
|
<%= f.input :post_id, label: "Post ID", input_html: { value: params[:search][:post_id] } %>
|
|
<%= f.input :url, input_html: { value: params[:search][:url] } %>
|
|
<%= f.input :hash, input_html: { value: params[:search][:hash] } %>
|
|
<%= f.input :file, as: :file %>
|
|
<%= f.submit "Search" %>
|
|
<% end %>
|
|
</section>
|
|
|
|
<%= render "iqdb_queries/matches" %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "uploads/secondary_links" %>
|