.newpo { color: #666; visibility: visible; }
.qualifiedpo { background-color: #FFFF00; }
.fullpo { background-color: #00FF00; }
+.errorpo { background-color: #FF0000; }
</style>
<script type="text/javascript">
function getStyleClass (className) {
foreach my $lang (@all_lang) {
my $pct = $everything->{$catalog}{$lang};
print "<td align=\"center\"";
- if (defined $pct and int($pct) == 100 and !$errors->{"$catalog"}{"$lang"}) {
+ if ($errors->{"$catalog"}{"$lang"}) {
+ print " class='errorpo'";
+ } elsif (defined $pct and int($pct) == 100) {
print " class='fullpo'";
- } elsif (defined $pct and $pct >= $QUALIFIED_CUTOFF and !$errors->{"$catalog"}{"$lang"}) {
+ } elsif (defined $pct and $pct >= $QUALIFIED_CUTOFF) {
print " class='qualifiedpo'";
}
print ">";