Compare commits

...

2 Commits

Author SHA1 Message Date
b534e45792 Formated fix 2025-07-25 03:00:54 +02:00
b5557670ba Fixed job number link in jobs#index 2025-07-25 02:59:54 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
<%= turbo_frame_tag dom_id(job, :badge) do %>
<%= link_to_if user_signed_in? && allowed_to?(:show, job, namespace: :Operator), job.id, operator_job_path(job) %>
<%= link_to_if user_signed_in? && allowed_to?(:show, job, namespace: :Operator), job.id, operator_job_path(job), target: "_blank" %>
<% end %>

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 %>