<%= link_to operator_job_path(job), target: "_top" do %> <%= job.id %> <% end %> <% if job.pdf.attached? && job.pdf.previewable? %> <%= link_to job.pdf, target: "_blank", target: "_top" do %> <%= icon("eye", class:"icon") %> <% end %> <% end %> <%= link_to job.costumer_fullname, admin_user_path(job.costumer), target: "_top" %> <% if job.pdf.attached? %> <%#= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %> <%= link_to truncate(job.pdf.filename.to_s, length: 45), job.pdf, download:true, target: "_top" %> <%= link_to job.pdf, download:true, target: "_top" do %> <%= icon("document-arrow-down", class: "text-hsrm-gray size-6 inline", title: "Download") %> <%=number_to_human_size job.pdf.blob.byte_size%> <% end %> <% end %> <% Job::AVAILABLE_PAGE_FORMATS.each do |din| %> <%= job.public_send("number_of_plans_#{din}") if job.respond_to? "number_of_plans_#{din}" %> <% end %> <% if job.printing? %> <%= link_to edit_operator_job_path(job), target: "_top" do %> <%= job.costum_qm_plan.round(2) %> m² <% end %> <% else %> <%= job.costum_qm_plan.round(2) %> m² <% end %> <%= job.cost %> € <%= job.status %>