From df5b04f6be5b6187445fd2f084ebbf5a045bea5d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 14 Nov 2024 08:32:55 +0000 Subject: pdf snapshotting now reduces size of image --- app/views/pdfresources/_pdfresource.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/pdfresources/_pdfresource.html.erb b/app/views/pdfresources/_pdfresource.html.erb index 3c8b3a8..12b2b58 100644 --- a/app/views/pdfresources/_pdfresource.html.erb +++ b/app/views/pdfresources/_pdfresource.html.erb @@ -32,7 +32,10 @@
Snapshots: <% pdfresource.pdf_snapshots.each do |image| %> -
<%= link_to image.filename, image %>
+
+ <%= image_tag url_for(image) %> + <%= link_to image.filename, image %> +
<% end %>
-- cgit v1.2.3