From 1a545dcb44e492494b2f7c473d7534f72b7c5c1b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Jul 2013 12:38:50 +0400 Subject: [PATCH] mark feed with error in headlines toolbar, use error icon in feed editor --- classes/feeds.php | 4 +++- classes/pref/feeds.php | 5 +++-- css/tt-rss.css | 8 ++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index e71be4e5..5649da7c 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -48,9 +48,11 @@ class Feeds extends Handler_Protected { // right part + $error_class = $error ? "error" : ""; + $reply .= ""; $reply .= ""; - $reply .= ""; + $reply .= ""; if ($feed_site_url) { $last_updated = T_sprintf("Last updated: %s", diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 1f8c5e4a..122d4b11 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -572,8 +572,9 @@ class Pref_Feeds extends Handler_Protected { $last_error = $this->dbh->fetch_result($result, 0, "last_error"); if ($last_error) { - print " (error)"; + print " \"(error)\""; } diff --git a/css/tt-rss.css b/css/tt-rss.css index 6b3b310c..de2a92d5 100644 --- a/css/tt-rss.css +++ b/css/tt-rss.css @@ -320,10 +320,6 @@ div.prefHelp { padding : 5px; } -span.feed_error { - color : red; -} - .insensitive { color : #555; } @@ -356,9 +352,9 @@ div#headlines-toolbar span.r { text-align : right; } -div#headlines-toolbar span.r span.error { +#headlines-toolbar span.r .error a { color : red; -} +} div#headlines-toolbar span.r a { color : #555; -- 2.39.5