]> git.wh0rd.org - tt-rss.git/commitdiff
show empty categories in italic in category editor
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 15 Jun 2012 08:24:41 +0000 (12:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 15 Jun 2012 08:24:41 +0000 (12:24 +0400)
classes/pref_feeds.php

index da454b48a070aa853cfb5d8ccaaf52dce27b7ee3..bf9f18a94c7e74e4f3147fa4d87ebff267f4630e 100644 (file)
@@ -1224,6 +1224,8 @@ class Pref_Feeds extends Protected_Handler {
 
                                print "<td>";
 
+                               if ($line['count'] == 0) print '<em>';
+
                                print "<span dojoType=\"dijit.InlineEditBox\"
                                        width=\"300px\" autoSave=\"false\"
                                        cat-id=\"$cat_id\">" . $edit_title .
@@ -1243,6 +1245,10 @@ class Pref_Feeds extends Protected_Handler {
                                        </script>
                                </span>";
 
+                               if ($line['count'] == 0) print '</em>';
+
+                               print "</td>";
+
                                print "<td align='right' class='insensitive'>";
                                echo T_sprintf("%d feeds", $line['count']);
                                print "</td></tr>";