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. --- show_activity.cgi | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'show_activity.cgi') diff --git a/show_activity.cgi b/show_activity.cgi index f8c55f0a1..ca0e52fa2 100755 --- a/show_activity.cgi +++ b/show_activity.cgi @@ -20,19 +20,21 @@ # # Contributor(s): Terry Weissman # Myk Melez +# Gervase Markham use diagnostics; use strict; use lib qw(.); +use vars qw ($template $vars); require "CGI.pl"; ConnectToDatabase(); -###################################################################### +############################################################################### # Begin Data/Security Validation -###################################################################### +############################################################################### # Check whether or not the user is currently logged in. This function # sets the value of $::usergroupset, the binary number that records @@ -44,17 +46,18 @@ quietly_check_login(); # bug that the user is authorized to access. ValidateBugID($::FORM{'id'}); -###################################################################### +############################################################################### # End Data/Security Validation -###################################################################### +############################################################################### -print "Content-type: text/html\n\n"; +($vars->{'operations'}, $vars->{'incomplete_data'}) = + GetBugActivity($::FORM{'id'}); -PutHeader("Changes made to bug $::FORM{'id'}", "Activity log", - "Bug $::FORM{'id'}"); +$vars->{'bug_id'} = $::FORM{'id'}; -DumpBugActivity($::FORM{'id'}); +print "Content-type: text/html\n\n"; -print qq|
Back to bug $::FORM{'id'}\n|; +$template->process("show/bug-activity.html.tmpl", $vars) + || DisplayError("Template process failed: " . $template->error()) + && exit; -PutFooter(); -- cgit v1.2.3-24-g4f1b