Fix ranges for displaying colors in stats email
The specs for [MAILPOET-3324] had a minor error that is fixed by this commit. The ranges for displaying different colors for the percentage of clicks should be < 1%, 1-3% and > 3% instead of < 10%, 10-30% and > 30%. [MAILPOET-3324]
This commit is contained in:
@ -261,9 +261,9 @@ class Functions extends AbstractExtension {
|
||||
}
|
||||
|
||||
public function statsColor($percentage) {
|
||||
if ($percentage > 30) {
|
||||
if ($percentage > 3) {
|
||||
return '#7ed321';
|
||||
} elseif ($percentage > 10) {
|
||||
} elseif ($percentage > 1) {
|
||||
return '#ff9f00';
|
||||
} else {
|
||||
return '#f559c3';
|
||||
|
Reference in New Issue
Block a user