diff --git a/app/views/yiff_rest/api_v2/images/iqdb.html.erb b/app/views/yiff_rest/api_v2/images/iqdb.html.erb index 5671316..1651782 100644 --- a/app/views/yiff_rest/api_v2/images/iqdb.html.erb +++ b/app/views/yiff_rest/api_v2/images/iqdb.html.erb @@ -10,6 +10,7 @@ <%= f.input(:file, as: :file) %> <%= f.input(:url, label: "File URL") %> <%= 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) %> <% end %> diff --git a/app/views/yiff_rest/api_v2/manage/_nav.html.erb b/app/views/yiff_rest/api_v2/manage/_nav.html.erb index 367fec8..e58eff6 100644 --- a/app/views/yiff_rest/api_v2/manage/_nav.html.erb +++ b/app/views/yiff_rest/api_v2/manage/_nav.html.erb @@ -13,7 +13,7 @@ <% if params[:controller] == "yiff_rest/api_v2/manage" %> <% elsif params[:controller] == "yiff_rest/api_v2/images" %> - <% if params[:action] == "index" %> + <% if %w[index iqdb query_iqdb].include?(params[:action]) %> @@ -28,7 +28,7 @@ <% end %> <% end %> <% end %>