tweak score display
This commit is contained in:
parent
9617eb9404
commit
1e36af0c1c
1 changed files with 11 additions and 7 deletions
|
@ -4924,13 +4924,7 @@
|
|||
|
||||
$score = $line["score"];
|
||||
|
||||
if ($score > 100) {
|
||||
$score_pic = "score_high.png";
|
||||
} else if ($score < -100) {
|
||||
$score_pic = "score_low.png";
|
||||
} else {
|
||||
$score_pic = "score_neutral.png";
|
||||
}
|
||||
$score_pic = get_score_pic($score);
|
||||
|
||||
$score_title = __("(Click to change)");
|
||||
|
||||
|
@ -5539,4 +5533,14 @@
|
|||
|
||||
return $filters;
|
||||
}
|
||||
|
||||
function get_score_pic($score) {
|
||||
if ($score > 0) {
|
||||
return "score_high.png";
|
||||
} else if ($score < 0) {
|
||||
return "score_low.png";
|
||||
} else {
|
||||
return "score_neutral.png";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue