Skip to content

Commit

Permalink
Add ImageContentType/Image to ColumnMap
Browse files Browse the repository at this point in the history
With this, we can add them to $UserSummaryExtraInfo and show them on user
summary page if needed.
  • Loading branch information
sunnavy committed Dec 20, 2024
1 parent 5ed1a79 commit 27f2c16
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions share/html/Elements/RT__User/ColumnMap
Original file line number Diff line number Diff line change
Expand Up @@ -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] ) );
},
},
};

</%ONCE>
Expand Down

0 comments on commit 27f2c16

Please sign in to comment.