2003-03-27 03:07:02 +03:00
|
|
|
#!/usr/bin/perl -wT
|
2000-01-07 00:16:15 +03:00
|
|
|
# -*- Mode: perl; indent-tabs-mode: nil -*-
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
|
|
|
# The Original Code is the Bugzilla Bug Tracking System.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Terry Weissman.
|
|
|
|
# Portions created by Terry Weissman are
|
|
|
|
# Copyright (C) 2000 Terry Weissman. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s): Terry Weissman <terry@mozilla.org>
|
2002-02-20 02:32:07 +03:00
|
|
|
# Contributor(s): Gervase Markham <gerv@gerv.net>
|
2000-01-07 00:16:15 +03:00
|
|
|
|
|
|
|
use strict;
|
2002-02-20 02:32:07 +03:00
|
|
|
use lib ".";
|
2002-01-20 04:44:52 +03:00
|
|
|
|
2003-05-05 05:15:38 +04:00
|
|
|
use Bugzilla;
|
2006-06-21 04:44:48 +04:00
|
|
|
use Bugzilla::Error;
|
2005-03-16 01:10:14 +03:00
|
|
|
use Bugzilla::User;
|
2006-07-01 20:45:54 +04:00
|
|
|
use Bugzilla::Keyword;
|
2003-05-05 05:15:38 +04:00
|
|
|
|
2004-03-27 06:51:44 +03:00
|
|
|
Bugzilla->login();
|
2000-01-22 19:51:49 +03:00
|
|
|
|
2003-05-05 05:15:38 +04:00
|
|
|
my $cgi = Bugzilla->cgi;
|
2005-10-25 03:11:56 +04:00
|
|
|
my $template = Bugzilla->template;
|
|
|
|
my $vars = {};
|
2003-05-05 05:15:38 +04:00
|
|
|
|
2006-07-01 20:45:54 +04:00
|
|
|
$vars->{'keywords'} = Bugzilla::Keyword->get_all_with_bug_count();
|
2006-09-04 20:21:49 +04:00
|
|
|
$vars->{'caneditkeywords'} = Bugzilla->user->in_group("editkeywords");
|
2000-01-07 00:16:15 +03:00
|
|
|
|
2003-05-05 05:15:38 +04:00
|
|
|
print Bugzilla->cgi->header();
|
2002-04-24 11:24:50 +04:00
|
|
|
$template->process("reports/keywords.html.tmpl", $vars)
|
|
|
|
|| ThrowTemplateError($template->error());
|