X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FShowRequestor;h=40833bf4ed11fefe72de272171b4f7f09d2da9d7;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=8a8eef62cf585ebff960a2cf72e9b31694188edd;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/Ticket/Elements/ShowRequestor b/rt/share/html/Ticket/Elements/ShowRequestor index 8a8eef62c..40833bf4e 100755 --- a/rt/share/html/Ticket/Elements/ShowRequestor +++ b/rt/share/html/Ticket/Elements/ShowRequestor @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,33 +45,28 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} +% if ($ShowTickets) { +% } <&| /Widgets/TitleBox, title_raw => loc("More about the requestors"), class => 'ticket-info-requestor' &> -
+
% while ( my $requestor = $people->Next ) { -

<& /Elements/ShowUser, User => $requestor &>

+

<& /Elements/ShowUser, User => $requestor, Link => 0 &> + User Summary

%# Additional information about this user. Empty by default. @@ -85,6 +80,8 @@
% } +% $m->callback( requestor => $requestor, %ARGS, CallbackName => 'AfterComments' ); + % if ( $ShowTickets ) {
    @@ -108,7 +105,7 @@
    <& $TicketTemplate, Requestor => $requestor &> % } else { -
    + @@ -131,15 +128,13 @@
    % } -% if ( $has_right_adminusers ) { - Modify this user -% } - %# end of individual requestor details
    % } %# end of requestors loop +% $m->callback( %ARGS, CallbackName => 'AfterRequestors' ); +
    <%INIT> @@ -167,17 +162,22 @@ my $status_link_text = {Active => loc('Active Tickets'), my $status_order = [qw/Active Inactive All/]; $m->callback( CallbackName => 'AddStatus', status_link_text => \$status_link_text, status_order => \$status_order ); -unless ( $DefaultTicketsTab eq 'None' ) { +$ShowTickets = 0 if $DefaultTicketsTab eq 'None'; + +my $TicketTemplate; +if ($ShowTickets) { for (0 .. (@$status_order - 1)) { - $selected = $_ && last - if $status_order->[$_] eq $DefaultTicketsTab; + if ( $status_order->[$_] eq $DefaultTicketsTab ) { + $selected = $_; + last; + } } -} -my $TicketTemplate = "ShowRequestorTickets$DefaultTicketsTab"; -$TicketTemplate = "ShowRequestorTicketsActive" - unless RT::Interface::Web->ComponentPathIsSafe($TicketTemplate) - and $m->comp_exists($TicketTemplate); + $TicketTemplate = "ShowRequestorTickets$DefaultTicketsTab"; + $TicketTemplate = "ShowRequestorTicketsActive" + unless RT::Interface::Web->ComponentPathIsSafe($TicketTemplate) + and $m->comp_exists($TicketTemplate); +} <%ARGS> $Ticket=>undef