From bca02305ba0a0f7ae90e328f838b17c409465599 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 11:36:00 +0100 Subject: [PATCH] show latest headlines in feed details --- backend.php | 26 ++++++++++++++++++++++---- tt-rss.css | 4 ++++ 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/backend.php b/backend.php index 169ce297a..9b2cd288f 100644 --- a/backend.php +++ b/backend.php @@ -2221,12 +2221,30 @@ print ""; - print ""; + $result = db_query($link, "SELECT title,updated + FROM ttrss_entries,ttrss_user_entries + WHERE ref_id = id AND feed_id = '$feed_id' + ORDER BY date_entered LIMIT 5"); - print "
-
"; + if (db_num_rows($result) > 0) { + print "

Latest headlines

"; + + print ""; + + print ""; + + print "
+
"; + } } db_close($link); diff --git a/tt-rss.css b/tt-rss.css index 7c3257887..cf9aeea32 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -613,3 +613,7 @@ table.innerLoginForm td { div.small, p.small { font-size : x-small; } + +span.insensitive { + color : gray; +}