Added viewable? to pdf in views
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="p-2 py-3 text-center">
|
||||
<% if job.pdf.attached? %>
|
||||
<% if job.pdf.attached? && job.pdf.previewable? %>
|
||||
<%= link_to_if job.printing?, image_tag(url_for(job.pdf.preview(resize_to_limit: [100, 100])), class:"shadow-lg"), job.pdf, target: "_blank" %>
|
||||
<!--<iframe src=<%= url_for(job.pdf) %> width="500" height="700" style="border: none;"></iframe>-->
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user