]> git.wh0rd.org - tt-rss.git/commitdiff
show feed update error (if any) in subtoolbar
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 24 Nov 2010 16:30:41 +0000 (19:30 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 24 Nov 2010 16:30:41 +0000 (19:30 +0300)
functions.php
tt-rss.css

index 28f2cc892f9a8bc80ed63c704cd4893b6873e275..6b76cea3052cda72205bcab9b52c189eb91c41b1 100644 (file)
 
        function print_headline_subtoolbar($link, $feed_site_url, $feed_title, 
                        $feed_id, $is_cat, $search, $match_on,
-                       $search_mode, $view_mode) {
+                       $search_mode, $view_mode, $error) {
 
                        $page_prev_link = "viewFeedGoPage(-1)";
                        $page_next_link = "viewFeedGoPage(1)";
                                $target = "target=\"_blank\"";
                                print "<a title=\"".__("Visit the website")."\" $target href=\"$feed_site_url\">".
                                        truncate_string($feed_title,30)."</a>";
+
+                               if ($error) {
+                                       print " (<span class=\"error\" title=\"$error\">Error</span>)";
+                               }
+
                        } else {
                                if ($feed_id < -10) {
                                        $label_id = -11-$feed_id;
 
                        if (db_num_rows($result) > 0) {
                                print_headline_subtoolbar($link, $feed_site_url, $feed_title,
-                                       $feed, $cat_view, $search, $match_on, $search_mode, $view_mode);
+                                       $feed, $cat_view, $search, $match_on, $search_mode, $view_mode, 
+                                       $last_error);
 
 //                             print "<div id=\"headlinesInnerContainer\" onscroll=\"headlines_scroll_handler()\">";
 
index 4e767efb8c09e83fe1458cc61370b4a6dbd086ac..2164324ba04412fb6e04da533b2b318e997184e7 100644 (file)
@@ -616,6 +616,10 @@ div#headlines-toolbar div#subtoolbar_ftitle {
        padding-right : 5px;
 }
 
+div#subtoolbar_ftitle span.error {
+       color : red;
+}
+
 span.contentPreview {
        color : gray;
        font-weight : normal;