From bd7f12ccd037b6445c035a681ba6c942659efefe Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Thu, 24 Oct 2024 02:24:57 -0500 Subject: [PATCH] Show image on convert page --- app/views/yiff_rest/api_v2/images/convert.html.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/yiff_rest/api_v2/images/convert.html.erb b/app/views/yiff_rest/api_v2/images/convert.html.erb index 12aa407..1503c8d 100644 --- a/app/views/yiff_rest/api_v2/images/convert.html.erb +++ b/app/views/yiff_rest/api_v2/images/convert.html.erb @@ -4,11 +4,16 @@ <%= render "yiff_rest/api_v2/manage/nav" %> -
-
+
+
<%= simple_form_for(:api_image, url: convert_yiff_rest_api_v2_manage_image_path(@image), method: :post) do |f| %> <%= f.input(:external_url) %> <%= f.button(:submit, "Convert Image", name: nil) %> <% end %>
+
+ <%= link_to(@image.url, target: "_blank", rel: "noopener") do %> + <%= image_tag(@image.url, style: "max-width: 100%; max-height: 80vh; object-fit: contain;") %> + <% end %> +