PATCH: Approvals/Elements/Approve

We’re implementing heavy duty, multi-level approvals at $work, and want
a streamlined My Approvals screen. The following patch to
Approvals/Elements/Approve adds an easy way for us to hide the Custom
Fields (we have lots!) and History sections. This is essential for us
since the parent ticket could generate potentially many subtickets, each
of which has its own approval ticket.

Drew

— Approve 2006-07-18 17:34:19.000000000 +0000
+++ Approve.orig 2006-07-18 17:34:59.000000000 +0000
@@ -52,8 +52,12 @@

<&|/l, $approving->Id, $approving->Subject &>Originating ticket: #[_1] ([_2])
+% if ($ShowCustomFields) { <& /Ticket/Elements/ShowCustomFields, Ticket => $approving &> +% } +% if ($ShowHistory) { <& /Ticket/Elements/ShowHistory, Ticket => $approving, Collapsed => 0, ShowTitle => 0, ShowHeaders => 0, ShowDisplayModes => 0, ShowTitleBarCommands => 0 &> +% }
% } @@ -82,5 +86,7 @@ <%ARGS> $ShowApproving => 1 +$ShowCustomFields => 1 +$ShowHistory => 1 $ticket => undef