From 27f2c16f2a7042b9eadd923eb3f13c9980d70eb2 Mon Sep 17 00:00:00 2001 From: sunnavy Date: Fri, 20 Dec 2024 10:09:34 -0500 Subject: [PATCH] Add ImageContentType/Image to ColumnMap With this, we can add them to $UserSummaryExtraInfo and show them on user summary page if needed. --- share/html/Elements/RT__User/ColumnMap | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/share/html/Elements/RT__User/ColumnMap b/share/html/Elements/RT__User/ColumnMap index 505cc5df04b..6750d4ff1a5 100644 --- a/share/html/Elements/RT__User/ColumnMap +++ b/share/html/Elements/RT__User/ColumnMap @@ -155,6 +155,19 @@ my $COLUMN_MAP = { title => 'System Group', # loc value => sub { return $_[0]->Privileged ? $_[0]->loc('Privileged'): $_[0]->loc('Unprivileged') }, }, + ImageContentType => { + title => 'Image Content Type', # loc + attribute => 'ImageContentType', + value => sub { return $_[0]->ImageContentType }, + }, + Image => { + title => 'Image', # loc + attribute => 'Image', + value => sub { + return '' unless $_[0]->_Value('Image'); + return \( $m->scomp( '/Elements/ShowUserImage', User => $_[0] ) ); + }, + }, };