From 350cc2dc78671bd38b486beedb649e39897a978d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Thu, 3 Oct 2024 18:37:02 +0200 Subject: [PATCH] Added 10 last customer jobs in profile/show --- app/views/profiles/show.html.erb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index 9fbcaf2..e12bdc2 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -49,3 +49,26 @@
<%= button_to "Log out", Current.session, method: :delete, class: "btn btn-primary" %> +

Die letzten 10 Druckaufträge

+
+ + + + + + + + + + + + + + + + + + <%= render partial: "jobs/job_tr", collection: current_user.customer_jobs.order(created_at: :desc).limit(10), as: :job, locals: { no_actions: true } %> + +
ID Vorschau Auftraggeber PDF A0 A1 A2 A3 no DIN Kosten Status
+
\ No newline at end of file