From 03ad2ba8d181eeb39ce224005e348ff6f9d3b119 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 4 Apr 2002 02:54:12 +0000 Subject: Bug 124937 - templatise show_activity.cgi. Patch by me, r=myk, bbaetz. --- process_bug.cgi | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 945f02c60..561db45e7 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -961,14 +961,21 @@ Someone else has made changes to this bug at the same time you were trying to. The changes made were:
"; - DumpBugActivity($id, $::FORM{'delta_ts'}); + use vars qw($template $vars); + + ($vars->{'operations'}, $vars->{'incomplete_data'}) = + GetBugActivity($::FORM{'id'}, $::FORM{'delta_ts'}); + + $template->process("show/activity.html.tmpl", $vars) + || DisplayError("Template process failed: " . $template->error()) + && exit; + my $comments = GetComments($id); my $longchanged = 0; if (scalar(@$comments) > $::FORM{'longdesclength'}) { $longchanged = 1; - print "
Added text to the long description:
"; - use vars qw($template $vars); + print "Added comments:
"; $vars->{'start_at'} = $::FORM{'longdesclength'}; $vars->{'comments'} = $comments; $vars->{'quoteUrls'} = \"eUrls; @@ -995,7 +1002,7 @@ The changes made were: print qq{\n}; print " This will cause all of the above changes to be overwritten"; if ($longchanged) { - print ", except for the changes to the description"; + print ", except for the added comments"; } print qq{.\nThrow away my changes, and go revisit bug $id\n}; PutFooter(); -- cgit v1.2.1