]> git.wh0rd.org Git - tt-rss.git/commitdiff
display feed icons in grouped vfeed mode
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Aug 2008 03:46:02 +0000 (04:46 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Aug 2008 03:46:02 +0000 (04:46 +0100)
functions.php
tt-rss.css

index eb67f520e25653dcdabc3be68c5ee64ddafd056e..1e1aff0e35a6ae483efe3da350b98d1e5143a53e 100644 (file)
 
                                                        $vf_catchup_link = "(<a onclick='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\");' href='#'>mark as read</a>)";
 
+                                                       $has_feed_icon = is_file(ICONS_DIR . "/$feed_id.ico");
+
+                                                       if ($has_feed_icon) {
+                                                               $feed_icon_img = "<img class=\"tinyFeedIcon\" src=\"".ICONS_URL."/$feed_id.ico\" alt=\"\">";
+                                                       } else {
+                                                               //$feed_icon_img = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\" alt=\"\">";
+                                                       }
+
+//                                                     $class = "odd";
+//                                                     $lnum = 0;
+
                                                        print "<tr class='feedTitle'><td colspan='7'>".
+                                                               "<div style=\"float : right\">$feed_icon_img</div>".
                                                                "<a href=\"javascript:viewfeed($feed_id, '', false)\">".
                                                                $line["feed_title"]."</a> $vf_catchup_link:</td></tr>";
                                                }
 
                                                        $vf_catchup_link = "(<a onclick='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\");' href='#'>mark as read</a>)";
 
+                                                       $has_feed_icon = is_file(ICONS_DIR . "/$feed_id.ico");
+
+                                                       if ($has_feed_icon) {
+                                                               $feed_icon_img = "<img class=\"tinyFeedIcon\" src=\"".ICONS_URL."/$feed_id.ico\" alt=\"\">";
+                                                       } else {
+                                                               //$feed_icon_img = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\" alt=\"\">";
+                                                       }
+
                                                        print "<div class='cdmFeedTitle'>".
+                                                               "<div style=\"float : right\">$feed_icon_img</div>".
                                                                "<a href=\"javascript:viewfeed($feed_id, '', false)\">".
                                                                $line["feed_title"]."</a> $vf_catchup_link</div>";
                                                }
index 6b5cc390cff46e42000fdb9cc8f6cb528caec010..5e02e32f27d0b3a4293edf7b33ed64528560c26f 100644 (file)
@@ -364,9 +364,9 @@ a.button {
        .evenSelectedUnread td {
        background-color : #fff7d5;
        font-weight : bold;
-                 border-width : 1px 0px 1px 0px;
-                 border-style : solid;
-                 border-color : #e7d796;
+       border-width : 1px 0px 1px 0px;
+       border-style : solid;
+       border-color : #e7d796;
 }
 
 .oddUnreadSelected, .oddSelectedUnread, .oddUnreadSelected td,
@@ -377,9 +377,10 @@ a.button {
 
 .evenSelected, .evenSelected td {
        background-color : #fff7d5;
-                 border-width : 1px 0px 1px 0px;
-                 border-style : solid;
-                 border-color : #e7d796;
+       border-width : 1px 0px 1px 0px;
+       border-style : solid;
+       border-color : #e7d796;
+       border-collapse : collapse;
 }
 
 .oddSelected, .evenSelected td {
@@ -389,9 +390,10 @@ a.button {
 .evenGrayed, .evenGrayed td {
        background-color : #f0f0f0;
        color : #909090;
-                 border-width : 1px 0px 1px 0px;
-                 border-style : solid;
-                 border-color : #c0c0c0;
+       border-width : 1px 0px 1px 0px;
+       border-style : solid;
+       border-color : #c0c0c0;
+       border-collapse : collapse;
 }
 
 .oddGrayed {
@@ -399,18 +401,20 @@ a.button {
 }
 
 .even, .even td {
-                 border-width : 1px 0px 1px 0px;
-                 border-style : solid;
-                 border-color : #c0c0c0;
+       border-width : 1px 0px 1px 0px;
+       border-style : solid;
+       border-color : #c0c0c0;
        background-color : #f0f0f0;
+       border-collapse : collapse;
 }
 
 .evenUnread, .evenUnread td {
        background-color : #f0f0f0;
        font-weight : bold;
-                 border-width : 1px 0px 1px 0px;
-                 border-style : solid;
-                 border-color : #c0c0c0;
+       border-width : 1px 0px 1px 0px;
+       border-style : solid;
+       border-color : #c0c0c0;
+       border-collapse : collapse;
 }
 
 .oddUnread, .oddUnread td {
@@ -1860,12 +1864,28 @@ div.cdmFeedTitle {
        border-width : 0px 0px 1px 0px;
        border-style : solid;
        padding : 5px;
+       background : url("images/toolbar.png") bottom left;
+       background-repeat : repeat-x;
+}
+
+table.headlinesList tr, table.headlinesList td {
+       border-collapse : collapse;
+       margin : 0px;
 }
 
 table.headlinesList tr.feedTitle td {
 /*     text-align : right;
        margin-top : 10px; */
-       padding-left : 5px;
+       /*padding-left : 5px;*/
+
+       background : url("images/toolbar.png") bottom left;
+       background-repeat : repeat-x;
+
+       border-color : #c0c0c0;
+       border-width : 0px 0px 1px 0px;
+       border-style : solid;
+       padding : 5px;
+
 }
 
 td.hlContent, td.hlContentL, td.hlContentH {