Fixed pdf preview with turbo_stream
This commit is contained in:
@@ -6,8 +6,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="p-3 text-sm text-center text-hsrm-gray">
|
<td class="p-3 text-sm text-center text-hsrm-gray">
|
||||||
<% if job.pdf.attached? %>
|
<% if job.pdf.attached? %>
|
||||||
<%#= image_tag(url_for(job.pdf.blob.preview(resize_to_limit: [100, 100]))) %>
|
<%= image_tag(url_for(job.pdf.blob.preview(resize_to_limit: [100, 100]))) %>
|
||||||
<%= image_tag job.pdf.preview(resize_to_limit: [50, 50]), class: "mx-auto" %>
|
<%#= image_tag job.pdf.preview(resize_to_limit: [50, 50]), class: "mx-auto" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
|
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
|
||||||
|
|||||||
Reference in New Issue
Block a user