]> git.wh0rd.org - tt-rss.git/commitdiff
rework headlines list appearance
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 27 Nov 2005 15:50:27 +0000 (16:50 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 27 Nov 2005 15:50:27 +0000 (16:50 +0100)
backend.php
tt-rss.css

index c6c0bbace3696b0e6d5a0d49af93725f9aa8a7ec..3ec932120fddceccda6f987cc3372bb5434631bb 100644 (file)
                        print "<tr class='$class' id='RROW-$id'>";
                        // onclick=\"javascript:view($id,$feed_id)\">
 
-                       print "<td valign='center' align='center'>$update_pic</td>";
+                       print "<td valign='center' class='hlUpdatePic'>$update_pic</td>";
 
-                       print "<td valign='center' align='center'>
+                       print "<td valign='center' class='hlSelectRow'>
                                <input type=\"checkbox\" onclick=\"toggleSelectRow(this)\"
                                        class=\"feedCheckBox\" id=\"RCHK-$id\">
                                </td>";
 
-                       print "<td valign='center' align='center'>$marked_pic</td>";
-
-                       print "<td width='15%'>
-                               <a href=\"javascript:view($id,$feed_id);\">".$line["updated"]."</a></td>";
+                       print "<td valign='center' class='hlMarkedPic'>$marked_pic</td>";
 
                        if ($line["feed_title"]) {                      
-                               print "<td width='65%'>$content_link</td>";
-                               print "<td width='20%'>
+                               print "<td class='hlContent'>$content_link</td>";
+                               print "<td class='hlFeed'>
                                        <a href='javascript:viewfeed($feed_id)'>".$line["feed_title"]."</a></td>";
                        } else {                        
-                               print "<td width='85%'>$content_link";
+                               print "<td class='hlContent'>$content_link";
                                if (get_pref($link, 'SHOW_CONTENT_PREVIEW')) {
                                        $content_preview = truncate_string(strip_tags($line["content_preview"]), 
                                                100);
                                print "</td>";
                        }
 
+                       $updated_fmt = date("M d, G:i", strtotime($line["updated"]));
+                       print "<td class=\"hlUpdated\"><nobr>$updated_fmt</nobr></td>";
+
                        print "</tr>";
 
                        ++$lnum;
index 9eabfd929f243eaf91bdd23eefca772d795ce565..12d1df1546390c145db21af5209e416103d8de9e 100644 (file)
@@ -705,3 +705,44 @@ span.contentPreview {
        color : gray;
        font-weight : normal;
 }
+
+td.hlMarkedPic {
+       width : 25px;
+       text-align : center;
+}
+
+td.hlSelectRow, td.hlUpdatePic {
+       width : 25px;
+       text-align : center;
+}
+
+td.hlUpdated {
+       font-size : small;
+       color : gray;
+       text-align : right;
+       width : 100px;
+}
+
+/*
+tr.even td.headlineContent, tr.evenUnread td.headlineContent {
+       display : block;
+       overflow : hidden;
+       height : 1em;   
+       background-color : #f0f0f0;
+}
+
+tr.odd td.headlineContent, tr.oddUnread td.headlineContent {
+       display : block;
+       overflow : hidden;
+       height : 1em;
+}
+
+tr.oddSelected td.headlineContent,
+tr.evenSelected td.headlineContent,
+tr.oddUnreadSelected td.headlineContent,
+tr.evenUnreadSelected td.headlineContent {
+       display : block;
+       overflow : hidden;
+       height : 1em;
+       background-color : #e0e0ff;
+} */