]> git.wh0rd.org Git - tt-rss.git/commitdiff
feedlist fixes
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 30 Dec 2005 11:18:31 +0000 (12:18 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 30 Dec 2005 11:18:31 +0000 (12:18 +0100)
backend.php
prefs.js
tt-rss.css

index 8f1fe08e4ba150f4713d09a35dfe74d1e20a2e8b..ad6e932ed3e9e15e26096ed8de2e2af04f93b598 100644 (file)
                if ($subop == "details") {
                        $id = db_escape_string($_GET["id"]);
 
-                       $result = db_query($link, "SELECT title,content,
+                       print "<div class=\"browserFeedInfo\">";
+                       print "<b>Feed information:</b>";
+                       print "<div class=\"detailsPart\">";
+
+                       $result = db_query($link, "SELECT 
+                                       feed_url,site_url,
+                                       SUBSTRING(last_updated,1,19) AS last_updated
+                               FROM ttrss_feeds WHERE id = '$id'");
+
+                       $feed_url = db_fetch_result($result, 0, "feed_url");
+                       $site_url = db_fetch_result($result, 0, "site_url");
+                       $last_updated = db_fetch_result($result, 0, "last_updated");
+
+                       if (get_pref($link, 'HEADLINES_SMART_DATE')) {
+                               $last_updated = smart_date_time(strtotime($last_updated));
+                       } else {
+                               $short_date = get_pref($link, 'SHORT_DATE_FORMAT');
+                               $last_updated = date($short_date, strtotime($last_updated));
+                       }
+
+                       print "Site: <a href='$site_url'>$site_url</a> ".
+                               "(<a href='$feed_url'>feed</a>), ".
+                               "Last updated: $last_updated";
+
+                       print "</div>";
+
+                       $result = db_query($link, "SELECT 
+                                       ttrss_entries.title,
+                                       content,
                                        substring(date_entered,1,19) as date_entered,
                                        substring(updated,1,19) as updated
-                               FROM ttrss_entries,ttrss_user_entries 
-                               WHERE   id = ref_id AND feed_id = '$id'
+                               FROM ttrss_entries,ttrss_user_entries
+                               WHERE   ttrss_entries.id = ref_id AND feed_id = '$id' 
                                ORDER BY updated DESC LIMIT 5");
 
                        if (db_num_rows($result) > 0) {
-
-                               print "<b>Feed information:</b>";
-                               print "<div class=\"detailsPart\">FIXME</div>";
                                
                                print "<b>Last headlines:</b><br>";
                                
                                }               
                                print "</ul></div>";
                        }
+
+                       print "</div>";
                                
                        return;
                }
index 99fe378bb530ca265f1af009cac0a8ceb34c9bfb..d23cf2d3601ed66c48051c0dcfe79e8a9d37e589 100644 (file)
--- a/prefs.js
+++ b/prefs.js
@@ -1335,6 +1335,8 @@ function feedBrowserSubscribe() {
        try {
                var list = document.getElementById("browseFeedList");
 
+               if (!list) list = document.getElementById("browseBigFeedList");
+
                var selected = new Array();
 
                for (i = 0; i < list.childNodes.length; i++) {
index d3e0fee799d86372d6a9d939259a3e1ba5a87889..092bbc7f2d4b8b9f9d441f894329ac153cbf8827 100644 (file)
@@ -973,6 +973,10 @@ ul.compact li {
        padding : 0px;
 }
 
-div.detailsPart {
+div.browserFeedInfo {
+       font-size : x-small;
+}
+
+div.browserFeedInfo div.detailsPart {
        margin : 5px 0px 5px 5px;       
 }