]> git.wh0rd.org - tt-rss.git/commitdiff
rework article view header
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 12 Dec 2005 12:58:21 +0000 (13:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 12 Dec 2005 12:58:21 +0000 (13:58 +0100)
backend.php

index c56e46c00e7e4e5ef02e38184dd9b1c7b6cccd69..ec662d818dff657cb20c4357f456a4c849d36ef7 100644 (file)
                                } else {
                                        $comments_url = $line["link"];
                                }
-                               $entry_comments = "(<a href=\"$comments_url\">$num_comments comments</a>)";
+                               $entry_comments = "<a href=\"$comments_url\">$num_comments comments</a>";
                        } else {
                                if ($line["comments"] && $line["link"] != $line["comments"]) {
-                                       $entry_comments = "(<a href=\"".$line["comments"]."\">Comments</a>)";
+                                       $entry_comments = "<a href=\"".$line["comments"]."\">Comments</a>";
                                }                               
                        }
 
 
                        print "<div class=\"postHeader\"><table width=\"100%\">";
 
-                       print "<tr><td>" . $line["title"] . "</td>";
+                       print "<tr><td><a href=\"" . $line["link"] . "\">" . $line["title"] . "</a></td>";
 
                        $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'), 
                                strtotime($line["updated"]));
                        $tags_str = preg_replace("/, $/", "", $tags_str);
                        $f_tags_str = preg_replace("/, $/", "", $f_tags_str);
 
-                       print "<tr><td width='50%'>
-                               <a href=\"" . $line["link"] . "\">".$line["link"]."</a>
-                               $entry_comments</td>
-                               <td align=\"right\">$tags_str</td></tr>";
+//                     $truncated_link = truncate_string($line["link"], 60);
 
-/*                     if ($tags_str) {
-                               print "<tr><td><b>Tags:</b></td>
-                                       <td width='100%'>$tags_str</td></tr>";
-                       } */
+                       if ($tags_str || $entry_comments) {
+                               print "<tr><td width='50%'>
+                                       $entry_comments</td>
+                                       <td align=\"right\">$tags_str</td></tr>";
+                       }
 
                        print "</table></div>";