]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweak feed display layout for tags
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 30 Sep 2006 06:12:53 +0000 (07:12 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 30 Sep 2006 06:12:53 +0000 (07:12 +0100)
backend.php

index 6e3fdcecea7cf4a4380ca45e55a5054bc0c75129..bbc62e132cbd3d0b16462ed4256492bf6a91793c 100644 (file)
                                ++$lnum;
                        }
 
+                       if (db_num_rows($result) == 0) {
+                               print "<li>No feeds to display.</li>";
+                       }
+
                } else {
 
                        // tags
                                select tag_name,0 as count FROM ttrss_tags WHERE owner_uid = '$owner_uid'
                        ORDER BY tag_name"); */
 
+                       if (get_pref($link, 'ENABLE_FEED_CATS')) {
+                               print "<li class=\"feedCat\">Tags</li>";
+                               print "<li id=\"feedCatHolder\"><ul class=\"feedCatList\">";
+                       }
+
                        $result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id) 
                                FROM ttrss_user_entries WHERE int_id = post_int_id 
                                        AND unread = true)) AS count FROM ttrss_tags 
        
                        } 
 
-               }
+                       if (db_num_rows($result) == 0) {
+                               print "<li>No tags to display.</li>";
+                       }
 
-               if (db_num_rows($result) == 0) {
-                       if ($tags) {
-                               $what = "tags";
-                       } else {
-                               $what = "feeds";
+                       if (get_pref($link, 'ENABLE_FEED_CATS')) {
+                               print "</ul>\n";
                        }
-                       print "<li>No $what to display.</li>";
+
                }
 
                print "</ul>";