--- AgentPending.pm.org	2004-02-11 22:27:03.000000000 +0100
+++ AgentPending.pm	2004-02-11 22:28:49.000000000 +0100
@@ -78,6 +78,15 @@
         }
     } 
     my $Tn = $Self->{TicketObject}->GetTNOfId(ID => $Self->{TicketID});
+    # --
+    # Check if ticket is locked and owned by current user
+    # --
+    my %Ticket = $Self->{TicketObject}->GetTicket(TicketID => $Self->{TicketID});
+    my $BgColor = "";
+    if($Self->{TicketObject}->IsTicketLocked(TicketID => $Self->{TicketID}) && $Ticket{OwnerID} == $Self->{UserID}) {
+        $BgColor = $Self->{ConfigObject}->Get('LockedTicketBackground');
+    }
+
     
     if ($Self->{Subaction} eq '' || !$Self->{Subaction}) {
         # get next states
@@ -102,7 +111,7 @@
             TicketID => $Self->{TicketID},
         );
         # html header
-        $Output .= $Self->{LayoutObject}->Header(Area => 'Agent', Title => 'Pending');
+        $Output .= $Self->{LayoutObject}->Header(Area => 'Agent', Title => 'Pending', BgColor => $BgColor);
         # get lock state
         if (!$Self->{TicketObject}->IsTicketLocked(TicketID => $Self->{TicketID})) {
             $Self->{TicketObject}->SetLock(
