diff --git a/app/views/jobs/_job_tr.html.erb b/app/views/jobs/_job_tr.html.erb index 9554337..e4e97cc 100644 --- a/app/views/jobs/_job_tr.html.erb +++ b/app/views/jobs/_job_tr.html.erb @@ -1,24 +1,21 @@ - + - + <%= job.id %> + + <% if job.pdf.attached? %> + <%#= image_tag(url_for(job.pdf.blob.preview(resize_to_limit: [100, 100]))) %> + <%= image_tag job.pdf.preview(resize_to_limit: [50, 50]), class: "mx-auto" %> + <% end %> + <%= job.costumer_fullname %> - - <% if job.pdf.attached? %> - <%= image_tag url_for(job.pdf.preview(resize_to_limit: [100, 100])) %> - <% end %> - <% if job.pdf.attached? %> - <%#= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %> - <%= link_to job.pdf.filename, job.pdf, download:true %> - - <%=number_to_human_size job.pdf.blob.byte_size%> - + <%= job.pdf.filename %> <% end %> diff --git a/app/views/jobs/index.html.erb b/app/views/jobs/index.html.erb index 62d564f..6b5de58 100644 --- a/app/views/jobs/index.html.erb +++ b/app/views/jobs/index.html.erb @@ -10,14 +10,15 @@ - + + - + - +
ID ID Vorschau Auftraggeber PDF PDF A0 A1 A2 A3 noDIN no DIN Kosten Status