From: Andrew Dolgov Date: Thu, 12 Feb 2009 18:54:07 +0000 (+0300) Subject: prefs: display label color indicators in filters list X-Git-Tag: 1.3.1~19 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a970edb1a28a5555776b81e9b8cc1db73c8ae98d;p=tt-rss.git prefs: display label color indicators in filters list --- diff --git a/modules/pref-filters.php b/modules/pref-filters.php index f2e3832e..e8e1cd60 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -432,7 +432,25 @@ $filter_params = array( "before" => __("before"), "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 = "
+ α"; + $tmp .= "
"; + + $line["action_param"] = "$tmp " . $line["action_param"]; + } + if ($line["filter_type"] == 5) { if (!strtotime($line["reg_exp"])) {