Fix iqdb link & add score cutoff to form
This commit is contained in:
parent
ce1df3bedf
commit
7a7d8c0dcc
@ -10,6 +10,7 @@
|
|||||||
<%= f.input(:file, as: :file) %>
|
<%= f.input(:file, as: :file) %>
|
||||||
<%= f.input(:url, label: "File URL") %>
|
<%= f.input(:url, label: "File URL") %>
|
||||||
<%= f.input(:image_id, label: "Image ID") %>
|
<%= f.input(:image_id, label: "Image ID") %>
|
||||||
|
<%= f.input(:score_cutoff, label: "Score Cutoff", input_html: { min: 0, max: 100, value: 60 }) %>
|
||||||
<%= f.button(:submit, "Query", name: nil) %>
|
<%= f.button(:submit, "Query", name: nil) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</li>
|
</li>
|
||||||
<% if params[:controller] == "yiff_rest/api_v2/manage" %>
|
<% if params[:controller] == "yiff_rest/api_v2/manage" %>
|
||||||
<% elsif params[:controller] == "yiff_rest/api_v2/images" %>
|
<% elsif params[:controller] == "yiff_rest/api_v2/images" %>
|
||||||
<% if params[:action] == "index" %>
|
<% if %w[index iqdb query_iqdb].include?(params[:action]) %>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<%= link_to "Upload Image", new_yiff_rest_api_v2_manage_image_path(api_image: ({ category: @sp[:category] } if @sp[:category])), class: "nav-link#{if_active(' active', path: new_yiff_rest_api_v2_manage_image_path(manage_id: params[:id]))}" %>
|
<%= link_to "Upload Image", new_yiff_rest_api_v2_manage_image_path(api_image: ({ category: @sp[:category] } if @sp[:category])), class: "nav-link#{if_active(' active', path: new_yiff_rest_api_v2_manage_image_path(manage_id: params[:id]))}" %>
|
||||||
</li>
|
</li>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<%= link_to("IQDB", iqdb_query_yiff_rest_api_v2_manage_images_path, class: "nav-link") %>
|
<%= link_to("IQDB", iqdb_yiff_rest_api_v2_manage_images_path, class: "nav-link") %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user