[Rt-commit] rt branch, 3.9-moremoreaboutrequestor, created. rt-3.8.8-648-ga8a56b6

Kevin Falcone falcone at bestpractical.com
Tue Aug 31 18:09:06 EDT 2010


The branch, 3.9-moremoreaboutrequestor has been created
        at  a8a56b6c9cc3a068e49a6b087c790c02bc85a08c (commit)

- Log -----------------------------------------------------------------
commit 5c66f876c59ff76735a800cbe20c3df17efb19b2
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Tue Aug 31 17:47:25 2010 -0400

    Show all 3 links all the time
    
    We'll make this more tab'y, but for now, this stops your links
    from hopping all over the page

diff --git a/share/html/Ticket/Elements/ShowRequestorToggleLinks b/share/html/Ticket/Elements/ShowRequestorToggleLinks
index a2fdfe0..4fed0e3 100644
--- a/share/html/Ticket/Elements/ShowRequestorToggleLinks
+++ b/share/html/Ticket/Elements/ShowRequestorToggleLinks
@@ -61,10 +61,6 @@ 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 );
 
-if ($Status) {
-    $status_order = [grep { $_ ne $Status } @$status_order];
-    delete $status_link_text->{$Status};
-}
 </%INIT>
 <%ARGS>
 $Requestor

commit a8a56b6c9cc3a068e49a6b087c790c02bc85a08c
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Tue Aug 31 17:56:41 2010 -0400

    Make the None preference helpful
    
    Showing no tickets is a performance gain, but you should still be able
    to toggle to the various lists, otherwise it cuts down on the utility.

diff --git a/share/html/Ticket/Elements/ShowRequestorTicketsNone b/share/html/Ticket/Elements/ShowRequestorTicketsNone
index 60a3608..b7e0833 100644
--- a/share/html/Ticket/Elements/ShowRequestorTicketsNone
+++ b/share/html/Ticket/Elements/ShowRequestorTicketsNone
@@ -49,6 +49,7 @@
 % if ( $AsLink ) {
 <& ShowRequestorTickets, %ARGS, conditions => $conditions, Rows => $Rows, Type => loc('all') &>
 % }
+<& ShowRequestorToggleLinks, %ARGS, Status => 'None' &>
 <%ARGS>
 $Requestor => undef
 $conditions => []

-----------------------------------------------------------------------


More information about the Rt-commit mailing list