X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fhtml%2FApprovals%2FElements%2FPendingMyApproval;fp=rt%2Fhtml%2FApprovals%2FElements%2FPendingMyApproval;h=8d19399ab68a09a1e7c69480069a39663b43a345;hb=9c68254528b6f2c7d8c1921b452fa56064783782;hp=e03145e181e90fae826418afcb922a565e8c0e4c;hpb=ef20b2b6b1feb47ad02b5ff7525f1a0fd11d0fa4;p=freeside.git diff --git a/rt/html/Approvals/Elements/PendingMyApproval b/rt/html/Approvals/Elements/PendingMyApproval index e03145e18..8d19399ab 100644 --- a/rt/html/Approvals/Elements/PendingMyApproval +++ b/rt/html/Approvals/Elements/PendingMyApproval @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,9 +22,7 @@ %# %# 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., 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. +%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -45,32 +43,33 @@ %# 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 -<& Approve, ticket => $ticket &> +% $i++; +% $class = ($i%2) ? "oddline" : "evenline"; +<& Approve, ticket => $ticket, class => $class &> % } % } +
-<&| /Widgets/TitleBox, 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] - +<&|/l, ""&>Only show approvals for requests created after [_1] +<& /Elements/TitleBoxEnd &> <%init> my $tickets = RT::Tickets->new( $session{'CurrentUser'} );