]> git.wh0rd.org Git - tt-rss.git/commitdiff
pref feedlist tweaks
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 18 May 2006 06:02:18 +0000 (07:02 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 18 May 2006 06:02:18 +0000 (07:02 +0100)
backend.php
images/prefs_tab.png
images/prefs_tab.svg
prefs.php
tt-rss-ie.css

index a1ddf5b810f1ea061d1d93304503ab5c7dcbb909..3d3d5f7e07c3072e2c1aa8fa8a2ed4f1f3c050f7 100644 (file)
                        print "</td>";
 
 #                      $row_class = toggleEvenOdd($row_class);
-                       print "<tr class='$row_class'><td>Link to:</td>";
+
+                       print "<tr class='$row_class'><td>Link to:</td><td>";
 
                        $tmp_result = db_query($link, "SELECT COUNT(id) AS count
                                FROM ttrss_feeds WHERE parent_feed = '$feed_id'");
                                $disabled = "disabled";
                        }
 
-                       print "<select $disabled  id=\"iedit_parent_feed\">";
+                       print "<select $disabled id=\"iedit_parent_feed\">";
                        
                        print "<option id=\"0\">Not linked</option>";
 
                                                $tmp_line["id"], $tmp_line["title"]);
                                }
 
-                               print "</select></td>";
-                               print "</td></tr>";
+                       print "</select>";
+                       print "</td></tr>";
 
                        $purge_interval = db_fetch_result($result, 0, "purge_interval");
 #                      $row_class = toggleEvenOdd($row_class);
                                        print "<tr><td colspan=\"6\" class=\"feedEditCat\">$edit_cat</td></tr>";
 
                                        print "<tr class=\"title\">
-                                               <td width='5%' align='center'>&nbsp;</td>
-                                               <td width='40%'><a href=\"javascript:updateFeedList('title')\">Title</a></td>
+                                               <td width='4%'>&nbsp;</td>";
+
+                                       if (get_pref($link, 'ENABLE_FEED_ICONS')) {
+                                               print "<td width='4%'>&nbsp;</td>";
+                                       }
+
+                                       print "<td width='40%'><a href=\"javascript:updateFeedList('title')\">Title</a></td>
                                                <td width='45%'><a href=\"javascript:updateFeedList('feed_url')\">Feed</a></td>
                                                <td width='15%' align='right'><a href=\"javascript:updateFeedList('last_updated')\">Updated</a></td>";
 
                                } else {
                                        $feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
                                }
-//                             print "<td class='feedIcon'>$feed_icon</td>";           
-       
+                               
                                print "<td class='feedSelect'><input onclick='toggleSelectRow(this);' 
                                type=\"checkbox\" id=\"FRCHK-".$line["id"]."\"></td>";
 
+                               if (get_pref($link, 'ENABLE_FEED_ICONS')) {
+                                       print "<td class='feedIcon'>$feed_icon</td>";           
+                               }
+
                                $edit_title = truncate_string($edit_title, 40);
                                $edit_link = truncate_string($edit_link, 60);
 
                                }
 
                                print "<td><a href=\"javascript:editFeed($feed_id);\">" . 
-                                       "$feed_icon $edit_title $parent_title" . "</a></td>";           
+                                       "$edit_title $parent_title" . "</a></td>";              
                                        
                                print "<td><a href=\"javascript:editFeed($feed_id);\">" . 
                                        $edit_link . "</a></td>";               
index 5df6f8bf402f290fa7152ad0fa145d3630e2e93f..13e8ba187b44b9f3cbb1e1e36205fe740f0725e3 100644 (file)
Binary files a/images/prefs_tab.png and b/images/prefs_tab.png differ
index f8307e4de66c729dfa7ec43e3c02e609eee50289..5eb7286ecdfc6dc63f6e9abef9e7677569385e10 100644 (file)
@@ -16,7 +16,7 @@
    version="1.0"
    sodipodi:docbase="/home/fox/public_html/testbox/tt-rss/images"
    sodipodi:docname="prefs_tab.svg"
-   inkscape:export-filename="/home/fox/public_html/testbox/tt-rss/images/active_tab.png"
+   inkscape:export-filename="/home/fox/public_html/testbox/tt-rss/images/prefs_tab.png"
    inkscape:export-xdpi="90.150002"
    inkscape:export-ydpi="90.150002">
   <defs
@@ -65,7 +65,7 @@
      inkscape:groupmode="layer"
      id="layer1">
     <rect
-       style="opacity:1;fill:none;fill-opacity:1.0;stroke:#88b0ff;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:#88b0ff;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
        id="rect1325"
        width="129.28574"
        height="48.392838"
index 4ba18570d1bbc08d5537f761057a6277277e4949..05775ddfef315c7cfad6d0af28582eb07493da06 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -49,6 +49,7 @@
 
        <!--[if gte IE 5.5000]>
                <script type="text/javascript" src="pngfix.js"></script>
+               <link rel="stylesheet" type="text/css" href="tt-rss-ie.css">
        <![endif]-->
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
index 2ca760c95c83970536a87cd11f060f32acf2dc75..1d6a4bead6a5b0a61a9fb025b6d8ee6d1abe2f17 100644 (file)
@@ -3,3 +3,7 @@ ul.feedCatList {
        top: -1em;
 }
 
+li.feedCatHolder {
+       margin : 0px;
+       padding : 0px;
+}