]> git.wh0rd.org Git - tt-rss.git/commitdiff
old-skool theme updates, fix catchup-jump backend bug
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 17 May 2006 13:57:46 +0000 (14:57 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 17 May 2006 13:57:46 +0000 (14:57 +0100)
backend.php
tt-rss.css

index 9d4c694a49ecd3fe2c84a54b0ddf805953cca3d8..7fe0dddab486c1e2d0e4aa69218cc7786231d675 100644 (file)
                        catchup_feed($link, $feed, $cat_view);
 
                        if (get_pref($link, 'ON_CATCHUP_SHOW_NEXT_FEED')) {
-                               $feed = $next_unread_feed;
+                               if ($next_unread_feed) {
+                                       $feed = $next_unread_feed;
+                               }
                        }
                }
 
                        return;
                }
                
-               print "<h1>User Details</h1>";
+#              print "<h1>User Details</h1>";
+
+               $login = db_fetch_result($result, 0, "login");
+
+               print "<h1>$login</h1>";
 
                print "<table width='100%'>";
 
-               $login = db_fetch_result($result, 0, "login");
                $last_login = date(get_pref($link, 'LONG_DATE_FORMAT'),
                        strtotime(db_fetch_result($result, 0, "last_login")));
                $access_level = db_fetch_result($result, 0, "access_level");
                $stored_articles = db_fetch_result($result, 0, "stored_articles");
 
-               print "<tr><td>Username</td><td>$login</td></tr>";
+#              print "<tr><td>Username</td><td>$login</td></tr>";
                print "<tr><td>Access level</td><td>$access_level</td></tr>";
                print "<tr><td>Last logged in</td><td>$last_login</td></tr>";
                print "<tr><td>Stored articles</td><td>$stored_articles</td></tr>";
 
                print "<ul class=\"userFeedList\">";
 
+               $row_class = "odd";
+
                while ($line = db_fetch_assoc($result)) {
 
                        $icon_file = ICONS_URL."/".$line["id"].".ico";
                                $feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">";
                        }
 
-                       print "<li>$feed_icon&nbsp;<a href=\"".$line["site_url"]."\">".$line["title"]."</a></li>";
+                       print "<li class=\"$row_class\">$feed_icon&nbsp;<a href=\"".$line["site_url"]."\">".$line["title"]."</a></li>";
+
+                       $row_class = toggleEvenOdd($row_class);
+
                }
 
                if (db_num_rows($result) < $num_feeds) {
index 67feb6ef4d3a29e0e39ca0c135f849cd7c78081e..0cbcc8910920f78a6c60a22b6e28cc5f3ffa8449 100644 (file)
@@ -943,6 +943,8 @@ ul.userFeedList {
         list-style-type : none;
                  border : 1px solid #88b0f0;
         background-color : white;
+        margin : 0px 0px 5px 0px;
+        padding : 0px;
 }
 
 /* #browseBigFeedList li.oddSelected {