Update of /cvsroot/sandweb/sandweb/lib/SandWeb
In directory usw-pr-cvs1:/tmp/cvs-serv23801/lib/SandWeb
Modified Files:
Browse.pm
Log Message:
moved hard-coded color info in Browse.pm out into browse_module.html thanks
to <TMPL_IF> and <TMPL_ELSE> statements.
The logic is exactly the same inside Browse.pm, just had to change
"$color0" to 0 and "$color1" to 1. Rad ;)
Index: Browse.pm
===================================================================
RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/Browse.pm,v
retrieving revision 1.40
retrieving revision 1.41
diff -U2 -r1.40 -r1.41
--- Browse.pm 2002/02/02 09:35:31 1.40
+++ Browse.pm 2002/02/03 03:54:52 1.41
@@ -103,8 +103,5 @@
my @return = ();
@loop_data = ();
- my $color0 = "#ccccee";
- my $color1 = "#ffffff";
-
if ( opendir(SANDBOX, "$sandbox/$location") ) {
$log->debug("Opened folder : $sandbox/$location");
@@ -141,7 +138,7 @@
$row_data{LINK} = "action=browse_module_menu&location=$location/$filename";
if ($counter eq "0") {
- $row_data{COLOR} = "$color0";
+ $row_data{COLOR} = 0;
} else {
- $row_data{COLOR} = "$color1";
+ $row_data{COLOR} = 1;
}
}
@@ -150,7 +147,7 @@
$row_data{LINK} = "action=file&filename=$filename";
if ($counter eq "0") {
- $row_data{COLOR} = "$color0";
+ $row_data{COLOR} = 0;
} else {
- $row_data{COLOR} = "$color1";
+ $row_data{COLOR} = 1;
}
}
@@ -159,7 +156,7 @@
$row_data{LINK} = "action=file&filename=$filename";
if ($counter eq "0") {
- $row_data{COLOR} = "$color0";
+ $row_data{COLOR} = 0;
} else {
- $row_data{COLOR} = "$color1";
+ $row_data{COLOR} = 1;
}
}
@@ -168,7 +165,7 @@
$row_data{LINK} = "action=file&filename=$filename";
if ($counter eq "0") {
- $row_data{COLOR} = "$color0";
+ $row_data{COLOR} = 0;
} else {
- $row_data{COLOR} = "$color1";
+ $row_data{COLOR} = 1;
}
}
|