From: Andrew Dolgov Date: Fri, 16 Dec 2005 17:53:10 +0000 (+0100) Subject: provide explanation message in the headlines subtoolbar if feed has update errors X-Git-Tag: schema_freeze_for_1.1.1~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1e471f3b4e7c06baf032745150a39ba2b7f92f7a;p=tt-rss.git provide explanation message in the headlines subtoolbar if feed has update errors --- diff --git a/backend.php b/backend.php index 974eb0a7..48d0ca3c 100644 --- a/backend.php +++ b/backend.php @@ -1135,11 +1135,12 @@ } else if (sprintf("%d", $feed) == 0) { $feed_title = $feed; } else if ($feed > 0) { - $result = db_query($link, "SELECT title,site_url FROM ttrss_feeds + $result = db_query($link, "SELECT title,site_url,last_error FROM ttrss_feeds WHERE id = '$feed'"); $feed_title = db_fetch_result($result, 0, "title"); $feed_site_url = db_fetch_result($result, 0, "site_url"); + $last_error = db_fetch_result($result, 0, "last_error"); } else if ($feed == -1) { $feed_title = "Starred articles"; @@ -1197,7 +1198,7 @@ ttrss_entries.id as id,title, SUBSTRING(updated,1,16) as updated, unread,feed_id, - marked,link,last_read, + marked,link,last_read, SUBSTRING(last_read,1,19) as last_read_noms, $vfeed_query_part $content_query_part @@ -1238,7 +1239,11 @@    Toggle: Unread, Starred"; - + if ($last_error) { + print "   + Could not update this feed..."; + } print ""; } else { diff --git a/tt-rss.css b/tt-rss.css index 55795e81..48364699 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -896,3 +896,7 @@ div.cdmHeader a:hover { div.cdmContent { } + +a.warning { + color : #f04040; +}