From d28b4e0876448cf1e232664d05c4accd71fd0201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Mon, 12 Aug 2024 03:49:33 +0200 Subject: [PATCH] Small design changes for job list --- app/views/jobs/_job_tr.html.erb | 21 +++++++++------------ app/views/jobs/index.html.erb | 7 ++++--- 2 files changed, 13 insertions(+), 15 deletions(-) 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