From: Andrew Dolgov Date: Fri, 30 Dec 2005 11:18:31 +0000 (+0100) Subject: feedlist fixes X-Git-Tag: schema_freeze_for_1.1.2~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=072f1ee2189ac470eb02a5fb16ec7dba5560bbbd;p=tt-rss.git feedlist fixes --- diff --git a/backend.php b/backend.php index 8f1fe08e..ad6e932e 100644 --- a/backend.php +++ b/backend.php @@ -3950,17 +3950,42 @@ if ($subop == "details") { $id = db_escape_string($_GET["id"]); - $result = db_query($link, "SELECT title,content, + print "
"; + print "Feed information:"; + print "
"; + + $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: $site_url ". + "(feed), ". + "Last updated: $last_updated"; + + print "
"; + + $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 "Feed information:"; - print "
FIXME
"; print "Last headlines:
"; @@ -3980,6 +4005,8 @@ } print "
"; } + + print ""; return; } diff --git a/prefs.js b/prefs.js index 99fe378b..d23cf2d3 100644 --- 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++) { diff --git a/tt-rss.css b/tt-rss.css index d3e0fee7..092bbc7f 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -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; }