Formated fix

This commit is contained in:
2025-07-25 03:00:54 +02:00
parent b5557670ba
commit b534e45792

View File

@@ -17,13 +17,13 @@
</td>
<td class="p-2 py-3">
<% if job.pdf.attached? %>
<%#= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %>
<% #= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %>
<%= link_to_if job.printing?, truncate(job.pdf.filename.to_s, length: 45), job.pdf, download:true %>
<% if job.printing? %>
<%= link_to job.pdf, download:true do %>
<span class="badge badge-hover">
<%= icon("document-arrow-down", class: "text-hsrm-gray size-6 inline", title: "Download") %>
<%=number_to_human_size job.pdf.blob.byte_size%>
<%= number_to_human_size job.pdf.blob.byte_size %>
</span>
<% end %>
<% end %>