X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fhtml%2FApprovals%2FElements%2FPendingMyApproval;h=e03145e181e90fae826418afcb922a565e8c0e4c;hp=8d19399ab68a09a1e7c69480069a39663b43a345;hb=ef20b2b6b1feb47ad02b5ff7525f1a0fd11d0fa4;hpb=a513c0bef534d05f03c1242831b6f3be19b97dae diff --git a/rt/html/Approvals/Elements/PendingMyApproval b/rt/html/Approvals/Elements/PendingMyApproval index 8d19399ab..e03145e18 100644 --- a/rt/html/Approvals/Elements/PendingMyApproval +++ b/rt/html/Approvals/Elements/PendingMyApproval @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +%# 02110-1301 or visit their web page on the internet at +%# http://www.gnu.org/copyleft/gpl.html. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -43,33 +45,32 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} - -% my ($i, $class); + % my %done; % foreach ($tickets, $group_tickets) { % while (my $ticket = $_->Next() ) { % next if !$ARGS{'ShowDependent'} and $ticket->HasUnresolvedDependencies( Type => 'approval' ); % next if $done{$ticket->Id}++; # don't show duplicate tickets -% $i++; -% $class = ($i%2) ? "oddline" : "evenline"; -<& Approve, ticket => $ticket, class => $class &> +<& Approve, ticket => $ticket &> % } % } -
-<& /Elements/TitleBoxStart, title => loc("Search for approvals") &> - loc("Search for approvals") &> +> <&|/l&>Show pending requests
-> <&|/l&>Show approved requests
-> <&|/l&>Show denied requests
-> <&|/l&>Show requests awaiting other approvals
+ && "checked"%> /> <&|/l&>Show pending requests
+ /> <&|/l&>Show approved requests
+ /> <&|/l&>Show denied requests
+ /> <&|/l&>Show requests awaiting other approvals
-<&|/l,""&>Only show approvals for requests created before [_1]
+<&|/l,""&>Only show approvals for requests created before [_1]
-<&|/l, ""&>Only show approvals for requests created after [_1] -<& /Elements/TitleBoxEnd &> +<&|/l, ""&>Only show approvals for requests created after [_1] + <%init> my $tickets = RT::Tickets->new( $session{'CurrentUser'} );