diff options
Diffstat (limited to 'rt/share/html/Ticket/Elements/ShowRequestorExtraInfo')
-rw-r--r-- | rt/share/html/Ticket/Elements/ShowRequestorExtraInfo | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/rt/share/html/Ticket/Elements/ShowRequestorExtraInfo b/rt/share/html/Ticket/Elements/ShowRequestorExtraInfo index 42c8f25e1..cd2dbc8b2 100644 --- a/rt/share/html/Ticket/Elements/ShowRequestorExtraInfo +++ b/rt/share/html/Ticket/Elements/ShowRequestorExtraInfo @@ -45,45 +45,7 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<div class="more-about-requestor-extra"> -% for my $column (@formats) { -% my $title = $column->{title} || ''; -% my $attr = $column->{'attribute'} || $column->{'last_attribute'}; -% unless (defined $column->{title}) { -% $title = $fetch_columnmap->($attr,'title',[$attr]); -% } -% $title = $m->comp('/Elements/ScrubHTML', Content => $title); -<div class="more-about-requestor-extra-field <% $fetch_columnmap->($attr,'attribute',[$attr]) %>" > -<span class="label"><% loc($title) %></span> -% my @out; -% foreach my $subcol ( @{ $column->{output} } ) { -% my ($col) = ($subcol =~ /^__(.*?)__$/); -% unless ( $col ) { -% push @out, $subcol; -% next; -% } -% push @out, $fetch_columnmap->($col, 'value', [$Requestor]); -% } -% @out = grep { defined $_ and length $_ } @out; -<span class="value"><% join(' ',@out) %></span> -</div> -% } -</div> -<%INIT> -my $format = RT->Config->Get('MoreAboutRequestorExtraInfo'); -my @formats = $m->comp('/Elements/CollectionAsTable/ParseFormat', Format => $format); - -my $fetch_columnmap = sub { - my ($name, $attr, $arguments) = @_; - my $tmp = $m->comp( '/Elements/ColumnMap', - Class => $Class, - Name => $name, - Attr => $attr, - ); - return ProcessColumnMapValue( $tmp, Arguments => $arguments, Escape => 0 ); -}; -</%INIT> +<& /User/Elements/UserInfo, User => $Requestor, FormatConfig => 'MoreAboutRequestorExtraInfo', ClassPrefix => 'more-about-requestor' &> <%ARGS> $Requestor => undef -$Class => 'RT__User'; </%ARGS> |