]> git.wh0rd.org - tt-rss.git/commitdiff
drop table markup from article header
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 7 Dec 2006 09:57:09 +0000 (10:57 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 7 Dec 2006 09:57:09 +0000 (10:57 +0100)
backend.php
tt-rss.css

index 545541cbf83b68188b0acc995b23b9a93485f6b3..9b0ce8f5f9fe6efc7deaaf0b9a2f8d5fd9f8db22 100644 (file)
 
                        print "<div class=\"postReply\">";
 
-                       print "<div class=\"postHeader\"><table width=\"100%\">";
+                       print "<div class=\"postHeader\">";
 
                        $entry_author = $line["author"];
 
                                $entry_author = " - by $entry_author";
                        }
 
-                       if ($line["link"]) {
-                               print "<tr><td width='70%'><a $link_target href=\"" . $line["link"] . "\">" . 
-                                       $line["title"] . "</a>$entry_author</td>";
-                       } else {
-                               print "<tr><td width='70%'>" . $line["title"] . "$entry_author</td>";
-                       }
-
                        $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'), 
                                strtotime($line["updated"]));
                
-                       print "<td class=\"postDate$rtl_class\">$parsed_updated</td>";
-                                               
-                       print "</tr>";
+                       print "<div class=\"postDate$rtl_class\">$parsed_updated</div>";
+
+                       if ($line["link"]) {
+                               print "<div clear='both'><a $link_target href=\"" . $line["link"] . "\">" . 
+                                       $line["title"] . "</a>$entry_author</div>";
+                       } else {
+                               print "<div clear='both'>" . $line["title"] . "$entry_author</div>";
+                       }
 
                        $tmp_result = db_query($link, "SELECT DISTINCT tag_name FROM
                                ttrss_tags WHERE post_int_id = " . $line["int_id"] . "
                                $tag = $tmp_line["tag_name"];                           
                                $tag_str = "<a href=\"javascript:viewfeed('$tag')\">$tag</a>, "; 
                                
-                               if ($num_tags == 3) {
+                               if ($num_tags == 6) {
                                        $tags_str .= "<a href=\"javascript:showBlockElement('allEntryTags')\">...</a>";
-                               } else if ($num_tags < 3) {
+                               } else if ($num_tags < 6) {
                                        $tags_str .= $tag_str;
                                }
                                $f_tags_str .= $tag_str;
                        $tags_str = preg_replace("/, $/", "", $tags_str);
                        $f_tags_str = preg_replace("/, $/", "", $f_tags_str);
 
-//                     $truncated_link = truncate_string($line["link"], 60);
+                       if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder
 
-#                      if ($tags_str || $entry_comments) {
-                               print "<tr><td width='50%'>
-                                       $entry_comments</td>
-                                       <td align=\"right\">$tags_str <a href=\"javascript:editArticleTags($id, $feed_id)\">(+)</a></td></tr>";
-#                      }
+                       print "<div style='float : right'>$tags_str 
+                               <a href=\"javascript:editArticleTags($id, $feed_id)\">(+)</a></div>
+                               <div clear='both'>$entry_comments</div>";
 
-                       print "</table></div>";
+                       print "</div>";
 
                        print "<div class=\"postIcon\">" . $feed_icon . "</div>";
                        print "<div class=\"postContent\">";
index f2a1aaedfa30fb0729561d31eda202c16b2cdcf7..a6d283c1425f0f8af1d6fe496e07f2196735a132 100644 (file)
@@ -713,16 +713,22 @@ table.headlinesList tr td {
        padding : 2px 0px 2px 0px;
 }
 
-div.postHeader td.postDate {
+div.postHeader div.postDate {
        font-size : x-small;
        text-align : right;
        color : gray;
+       float : right;
 }
 
-div.postHeader td.postDateRTL {
+div.postHeader div.postDateRTL {
        font-size : x-small;
        text-align : left;
        color : gray;
+       float : right;
+}
+
+div.postHeader div {
+       padding-bottom : 3px;
 }
 
 #feedUpdateErrors {