From c2b2aee071f19adb8f15b94695dae78e1dda52f0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Dec 2005 07:00:36 +0100 Subject: [PATCH] browser interface tweaks --- backend.php | 35 +++++++++++++++++++++++++++++++++-- prefs.js | 20 ++++++++++++++------ tt-rss.css | 15 +++++++++++++++ 3 files changed, 62 insertions(+), 8 deletions(-) diff --git a/backend.php b/backend.php index 11e5c1e0..16797ea4 100644 --- a/backend.php +++ b/backend.php @@ -3949,7 +3949,38 @@ if ($subop == "details") { $id = db_escape_string($_GET["id"]); - print "-- nasty details about feed $id --"; + + $result = db_query($link, "SELECT 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' + ORDER BY updated DESC LIMIT 5"); + + if (db_num_rows($result) > 0) { + + print "Feed information:"; + print "
FIXME
"; + + print "Last headlines:
"; + + print "
"; + print "
"; + } + return; } @@ -3998,7 +4029,7 @@ print "
  • $check_box". "$feed_icon "; - print "" . + print "" . $details["title"] ." " . "($subscribers)"; diff --git a/prefs.js b/prefs.js index 66c0de5d..99fe378b 100644 --- a/prefs.js +++ b/prefs.js @@ -1380,19 +1380,27 @@ function updateBigFeedBrowser() { } -function browserExpand(id) { +function browserToggleExpand(id) { try { /* if (feed_to_expand && feed_to_expand != id) { var d = document.getElementById("BRDET-" + feed_to_expand); d.style.display = "none"; } */ + + var d = document.getElementById("BRDET-" + id); + + if (d.style.display == "block") { + d.style.display = "none"; + + } else { - feed_to_expand = id; + feed_to_expand = id; - xmlhttp.open("GET", "backend.php?op=pref-feed-browser&subop=details&id=" - + param_escape(id), true); - xmlhttp.onreadystatechange=expand_feed_callback; - xmlhttp.send(null); + xmlhttp.open("GET", "backend.php?op=pref-feed-browser&subop=details&id=" + + param_escape(id), true); + xmlhttp.onreadystatechange=expand_feed_callback; + xmlhttp.send(null); + } } catch (e) { exception_error("browserExpand", e); diff --git a/tt-rss.css b/tt-rss.css index 8da86844..5878a097 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -955,3 +955,18 @@ div.browserDetails { display : none; padding : 5px; } + +ul.compact { + list-style-type : none; + margin : 0px; + padding : 0px; +} + +ul.compact li { + margin : 0px; + padding : 0px; +} + +div.detailsPart { + margin : 5px 0px 5px 5px; +} -- 2.39.5