diff options
author | gerv%gerv.net <> | 2002-04-04 02:54:12 +0000 |
---|---|---|
committer | gerv%gerv.net <> | 2002-04-04 02:54:12 +0000 |
commit | 03ad2ba8d181eeb39ce224005e348ff6f9d3b119 (patch) | |
tree | 06f6b52bc15704a67b7decc3a65a9d89cf4599fc /show_activity.cgi | |
parent | 8218d4fede3ee86113841137fbe186fc587c5153 (diff) | |
download | bugs-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.tar bugs-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.tar.gz bugs-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.tar.bz2 bugs-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.tar.xz bugs-03ad2ba8d181eeb39ce224005e348ff6f9d3b119.zip |
Bug 124937 - templatise show_activity.cgi. Patch by me, r=myk, bbaetz.
Diffstat (limited to 'show_activity.cgi')
-rwxr-xr-x | show_activity.cgi | 23 |
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(); |