]> git.wh0rd.org - tt-rss.git/commitdiff
duplicate feed actions toolbar on bottom (related to #44)
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 24 Feb 2006 09:33:09 +0000 (10:33 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 24 Feb 2006 09:33:09 +0000 (10:33 +0100)
backend.php
viewfeed.js

index 5803344c56c226561b3c03b02f41d609dd78d5f7..15bb7702c4366f284747a3583a3ea30461adbb2d 100644 (file)
                                Could not display feed (query failed). Please check label match syntax or local configuration.</div>";
                        return;
                }
-       
-               if (db_num_rows($result) > 0) {
+
+               function print_headline_subtoolbar($link, $feed_site_url, $feed_title) {
 
                        print "<table class=\"headlinesSubToolbar\" 
                                width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr>";
                        
                                print "</td>";
 
-
                        }
 
                        if ($last_error) {
                                        print "<td align='center' class='small'>
                                                <a class=\"warning\" href=\"javascript:alert('TT-RSS encountered an error while trying to update this feed.\\n\\n$last_error')\">Could not update this feed.</a></td>";
-                               }       
+                       }       
 
                        print "<td class=\"headlineTitle\">";
                
                        print "</td>";
                        print "</tr></table>";
 
+               }
+       
+               if (db_num_rows($result) > 0) {
+
+                       print_headline_subtoolbar($link, $feed_site_url, $feed_title);
+
                        if (!get_pref($link, 'COMBINED_DISPLAY_MODE')) {
                                print "<table class=\"headlinesList\" id=\"headlinesList\" 
                                        cellspacing=\"0\" width=\"100%\">";
                                print "</table>";
                        }
 
+                       print_headline_subtoolbar($link, "javascript:catchupPage()", "Mark page as read");
+
+
                } else {
                        print "<div width='100%' align='center'>No articles found.</div>";
                }
index c452d0aa9043ea69c4d100085ec15f04866644c0..28b94f167979421c12dca835aa52a017139ecc1e 100644 (file)
@@ -374,6 +374,11 @@ function cdmSelectArticles(mode) {
        }
 }
 
+function catchupPage() {
+       alert("FIXME not yet implemented");
+}
+
+
 function init() {
        document.onkeydown = hotkey_handler;
 }