]> git.wh0rd.org Git - tt-rss.git/commitdiff
enable comments link in op=view
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 7 Sep 2005 08:46:30 +0000 (09:46 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 7 Sep 2005 08:46:30 +0000 (09:46 +0100)
backend.php
tt-rss.css

index a3460c4fc08bde2abfcdf316960e3d69bf5b51f5..8ddb391a54d3289a98f2fe72e326cc2dec22c763 100644 (file)
                                $feed_icon = "&nbsp;";
                        }
 
+                       if ($line["comments"] && $line["link"] != $line["comments"]) {
+                               $entry_comments = "(<a href=\"".$line["comments"]."\">Comments</a>)";
+                       } else {
+                               $entry_comments = "";
+                       }
+
                        print "<div class=\"postReply\">";
 
                        print "<div class=\"postHeader\"><table>";
 
                        print "<tr><td><b>Title:</b></td>
                                <td width='100%'>" . $line["title"] . "</td></tr>";
+                               
                        print "<tr><td><b>Link:</b></td>
-                               <td width='100%'>" . $line["link"] . "</td></tr>";
+                               <td width='100%'>
+                               <a href=\"" . $line["link"] . "\">".$line["link"]."</a>
+                               $entry_comments</td></tr>";
                                        
                        print "</table></div>";
 
index f3113b1bff594aa10c98c47e99f072c451ebce87..87c15951ab0f2068b7ef22735e534f0c5005fce7 100644 (file)
@@ -101,6 +101,14 @@ div.postReply {
        padding : 10px;
 }
 
+div.postReply a {
+       color : #5050aa;
+}
+
+div.postReply a:hover {
+       color : black;
+}
+
 div.postReply div.postHeader {
        background : white;
        border : 1px solid #c0c0c0;