<%= link_to operator_job_path(job), target: "_top" do %> <%= job.id %> <% end %> <%= link_to job.costumer_firstname, admin_user_path(job.costumer), target: "_top" %> <%= link_to job.costumer_lastname, 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" %> <% if job.pdf.previewable? %> <%= link_to job.pdf, target: "_blank", target: "_top" do %> <%= icon("eye", class:"icon text-hsrm-gray size-6 inline") %> <% end %> <% end %> <%= 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 %> <%= number_with_delimiter job.costum_qm_plan.round(2) %> m² <%= number_to_currency job.cost, locale: :de %> <%= l job.created_at.localtime.to_date %> <% if job.created_by_operator %> <%= link_to admin_user_path(job.creator) do %> Operator <% end %> <% else %> <%= link_to admin_user_path(job.creator) do %> Kunden <% end %> <% end %> <%= job.status %>