From 43c01c6cece3206e50845a9f86a1fea6314f0567 Mon Sep 17 00:00:00 2001 From: Lea Ann Bradford Date: Thu, 15 Jun 2023 08:49:18 -0700 Subject: [PATCH] Add depositor name to published tab (#577) --- app/views/hyrax/admin/workflows/index.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/hyrax/admin/workflows/index.html.erb b/app/views/hyrax/admin/workflows/index.html.erb index 336316f02..7a163562b 100644 --- a/app/views/hyrax/admin/workflows/index.html.erb +++ b/app/views/hyrax/admin/workflows/index.html.erb @@ -73,7 +73,9 @@ <%= link_to document, [main_app, document] %> - <%= safe_join(document.creator, tag(:br)) %> + <%# OVERRIDE: show the user/depositor's display_name if available %> + <% user = User.find_by(email: document.depositor) %> + <%= user&.display_name.presence %> <%= document.date_modified %>