make BT and VC column heading configurable.

This commit is contained in:
kestes%walrus.com 2001-10-09 15:30:16 +00:00
parent cc8496680c
commit a541c2d473
4 changed files with 30 additions and 13 deletions

View File

@ -5,8 +5,8 @@
# customizable settings.
# $Revision: 1.11 $
# $Date: 2001/10/05 22:11:50 $
# $Revision: 1.12 $
# $Date: 2001/10/09 15:30:16 $
# $Author: kestes%walrus.com $
# $Source: /home/hwine/cvs_conversion/cvsroot/mozilla/webtools/tinderbox2/src/default_conf/TinderConfig.pm,v $
# $Name: $
@ -210,6 +210,10 @@ $VCDisplayImpl = (
#'VCDisplay::Bonsai',
);
# The name of the version control system as it should appear on the
# column heading.
$VC_NAME = "CVS";
# Pick one method for storting data, Data::Dumper is slow but text
# files allows great debugging capabilities and Storable, availible
@ -241,6 +245,11 @@ $BONSAI_DIR = "/home/httpd/cgi-bin/bonsai";
$BT_URL = 'http://bugzilla.mozilla.org/';
# The name of the bug tracking system as it should appear on the
# column heading.
$BT_NAME = "BT";
# The default number of hours shown on the status page
$DEFAULT_DISPLAY_HOURS = 6;

View File

@ -74,7 +74,7 @@ use TreeData;
use VCDisplay;
$VERSION = ( qw $Revision: 1.10 $ )[1];
$VERSION = ( qw $Revision: 1.11 $ )[1];
@ISA = qw(TinderDB::BasicTxtDB);
@ -85,6 +85,8 @@ $VERSION = ( qw $Revision: 1.10 $ )[1];
push @TinderDB::HTML_COLUMNS, TinderDB::BT->new();
# name of the bug tracking system
$BT_NAME = $TinderDB::BT_NAME || "BT";
# remove all records from the database which are older then last_time.
@ -189,7 +191,7 @@ sub status_table_header {
my (@progress_states) = BTData::get_all_progress_states();
foreach $progress (@progress_states) {
$out .= "\t<th>BT $progress</th>\n";
$out .= "\t<th>$BT_NAME $progress</th>\n";
}
return ($out);
@ -302,7 +304,7 @@ sub status_table_row {
# a link to the cgibin page which displays the bug
my ($href) = BTData::bug_id2bug_url($rec);
my ($window_title) = "BT Info bug_id: $bug_id";
my ($window_title) = "$BT_NAME Info bug_id: $bug_id";
# we display the list of names in 'teletype font' so that the
# names do not bunch together. It seems to make a difference if

View File

@ -93,7 +93,7 @@ use TreeData;
use VCDisplay;
$VERSION = ( qw $Revision: 1.8 $ )[1];
$VERSION = ( qw $Revision: 1.9 $ )[1];
@ISA = qw(TinderDB::BasicTxtDB);
@ -103,6 +103,8 @@ $VERSION = ( qw $Revision: 1.8 $ )[1];
push @TinderDB::HTML_COLUMNS, TinderDB::VC_Bonsai->new();
# name of the version control system
$VC_NAME = $TinderDB::VC_NAME || "CVS";
# remove all records from the database which are older then last_time.
@ -278,7 +280,7 @@ sub status_table_legend {
$out .= "\t<table $TinderDB::LEGEND_BORDER>\n";
$out .= ("\t\t<thead><tr><td align=center>".
"VC Cell Colors".
"$VC_NAME Cell Colors".
"</td></tr></thead>\n");
foreach $state (TreeData::get_all_tree_states()) {
@ -296,7 +298,7 @@ sub status_table_legend {
sub status_table_header {
return ("\t<th>VC checkins</th>\n");
return ("\t<th>$VC_NAME checkins</th>\n");
}
@ -460,7 +462,7 @@ sub status_table_row {
"linktxt" => "\t\t<tt>$author</tt>",
"windowtxt" => $table,
"windowtitle" => ("VC Info ".
"windowtitle" => ("$VC_NAME Info ".
"Author: $author ".
"$time_interval_str "),

View File

@ -134,7 +134,7 @@ use TreeData;
use VCDisplay;
$VERSION = ( qw $Revision: 1.16 $ )[1];
$VERSION = ( qw $Revision: 1.17 $ )[1];
@ISA = qw(TinderDB::BasicTxtDB);
@ -148,6 +148,10 @@ push @TinderDB::HTML_COLUMNS, TinderDB::VC_CVS->new();
$CURRENT_YEAR = 1900 + (gmtime(time()))[5];
# name of the version control system
$VC_NAME = $TinderDB::VC_NAME || "CVS";
sub parse_cvs_time {
@ -468,7 +472,7 @@ sub status_table_legend {
$out .= "\t<table $TinderDB::LEGEND_BORDER>\n";
$out .= ("\t\t<thead><tr><td align=center>".
"VC Cell Colors".
"$VC_NAME Cell Colors".
"</td></tr></thead>\n");
foreach $state (TreeData::get_all_tree_states()) {
@ -486,7 +490,7 @@ sub status_table_legend {
sub status_table_header {
return ("\t<th>VC checkins</th>\n");
return ("\t<th>$VC_NAME checkins</th>\n");
}
@ -650,7 +654,7 @@ sub status_table_row {
"linktxt" => "\t\t<tt>$author</tt>",
"windowtxt" => $table,
"windowtitle" => ("VC Info ".
"windowtitle" => ("$VC_NAME Info ".
"Author: $author ".
"$time_interval_str "),