aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-04 02:54:12 +0000
committergerv%gerv.net <>2002-04-04 02:54:12 +0000
commit03ad2ba8d181eeb39ce224005e348ff6f9d3b119 (patch)
tree06f6b52bc15704a67b7decc3a65a9d89cf4599fc /show_activity.cgi
parentBug 109528 - Can't query for attachment status != value if patch has no (diff)
downloadbugzilla-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.tar.gz
bugzilla-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.tar.bz2
bugzilla-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.zip
Bug 124937 - templatise show_activity.cgi. Patch by me, r=myk, bbaetz.
Diffstat (limited to 'show_activity.cgi')
-rwxr-xr-xshow_activity.cgi23
1 files changed, 13 insertions, 10 deletions
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 <terry@mozilla.org>
# Myk Melez <myk@mozilla.org>
+# Gervase Markham <gerv@gerv.net>
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|<hr><a href="show_bug.cgi?id=$::FORM{'id'}">Back to bug $::FORM{'id'}</a>\n|;
+$template->process("show/bug-activity.html.tmpl", $vars)
+ || DisplayError("Template process failed: " . $template->error())
+ && exit;
-PutFooter();