filter editor: show score_pic in params column

This commit is contained in:
Andrew Dolgov 2008-05-04 05:19:19 +01:00
parent cb135873d8
commit 0966ea378b
2 changed files with 20 additions and 1 deletions

View File

@ -4918,6 +4918,8 @@
if ($score > 100) { if ($score > 100) {
$score_pic = "score_high.png"; $score_pic = "score_high.png";
} else if ($score < -100) {
$score_pic = "score_low.png";
} else { } else {
$score_pic = "score_neutral.png"; $score_pic = "score_neutral.png";
} }

View File

@ -303,7 +303,24 @@
$line["reg_exp"] = htmlspecialchars($line["reg_exp"]); $line["reg_exp"] = htmlspecialchars($line["reg_exp"]);
if (!$line["feed_title"]) $line["feed_title"] = __("All feeds"); if (!$line["feed_title"]) $line["feed_title"] = __("All feeds");
if (!$line["action_param"]) $line["action_param"] = "&mdash;";
if (!$line["action_param"]) {
$line["action_param"] = "&mdash;";
} else if ($line["action_name"] == "score") {
if ($line["action_param"] > 100) {
$score_pic = "score_high.png";
} else if ($line["action_param"] < -100) {
$score_pic = "score_low.png";
} else {
$score_pic = "score_neutral.png";
}
$score_pic = "<img class='hlScorePic' src=\"images/$score_pic\">";
$line["action_param"] = "$score_pic " . $line["action_param"];
}
$line["feed_title"] = htmlspecialchars($line["feed_title"]); $line["feed_title"] = htmlspecialchars($line["feed_title"]);