mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 16:01:29 +00:00
prefs: display label color indicators in filters list
This commit is contained in:
@@ -433,6 +433,24 @@
|
|||||||
"before" => __("before"),
|
"before" => __("before"),
|
||||||
"after" => __("after"));
|
"after" => __("after"));
|
||||||
|
|
||||||
|
if ($line["action_name"] == 'label') {
|
||||||
|
|
||||||
|
$tmp_result = db_query($link, "SELECT fg_color, bg_color
|
||||||
|
FROM ttrss_labels2 WHERE caption = '".
|
||||||
|
db_escape_string($line["action_param"])."' AND
|
||||||
|
owner_uid = " . $_SESSION["uid"]);
|
||||||
|
|
||||||
|
$fg_color = db_fetch_result($tmp_result, 0, "fg_color");
|
||||||
|
$bg_color = db_fetch_result($tmp_result, 0, "bg_color");
|
||||||
|
|
||||||
|
$tmp = "<div class='labelColorIndicator' id='LICID-$id'
|
||||||
|
style='color : $fg_color; background-color : $bg_color'>
|
||||||
|
α";
|
||||||
|
$tmp .= "</div>";
|
||||||
|
|
||||||
|
$line["action_param"] = "$tmp " . $line["action_param"];
|
||||||
|
}
|
||||||
|
|
||||||
if ($line["filter_type"] == 5) {
|
if ($line["filter_type"] == 5) {
|
||||||
|
|
||||||
if (!strtotime($line["reg_exp"])) {
|
if (!strtotime($line["reg_exp"])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user