mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
ids.cgi: Fix display issue with colum backgound colour in provider list.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -1160,6 +1160,8 @@ print <<END;
|
||||
<td class='base' colspan='3' bgcolor='$color{'color20'}'></td>
|
||||
</tr>
|
||||
END
|
||||
my $line = 1;
|
||||
|
||||
# Check if some providers has been configured.
|
||||
if (keys (%used_providers)) {
|
||||
my $col = "";
|
||||
@@ -1176,7 +1178,7 @@ END
|
||||
my $status = $used_providers{$id}[3];
|
||||
|
||||
# Check if the item number is even or not.
|
||||
if ($id % 2) {
|
||||
if ($line % 2) {
|
||||
$col="bgcolor='$color{'color22'}'";
|
||||
} else {
|
||||
$col="bgcolor='$color{'color20'}'";
|
||||
@@ -1244,6 +1246,9 @@ print <<END;
|
||||
</td>
|
||||
</tr>
|
||||
END
|
||||
# Increment lines value.
|
||||
$line++;
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user