From: Andrew Dolgov Date: Sun, 20 Nov 2005 07:31:58 +0000 (+0100) Subject: feed details improvements X-Git-Tag: schema_feature_freeze_for_1.1~168 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4fec9fd7795c4258a50b87ec88d076b85e7c040d;p=tt-rss.git feed details improvements --- diff --git a/backend.php b/backend.php index b8455b48..cd7d65c2 100644 --- a/backend.php +++ b/backend.php @@ -2175,7 +2175,7 @@ $result = db_query($link, "SELECT - title,feed_url,last_updated, + title,feed_url,last_updated,icon_url, (SELECT COUNT(int_id) FROM ttrss_user_entries WHERE feed_id = id) AS total, (SELECT COUNT(int_id) FROM ttrss_user_entries @@ -2190,19 +2190,39 @@ $title = db_fetch_result($result, 0, "title"); $last_updated = db_fetch_result($result, 0, "last_updated"); $feed_url = db_fetch_result($result, 0, "feed_url"); + $icon_url = db_fetch_result($result, 0, "icon_url"); $total = db_fetch_result($result, 0, "total"); $unread = db_fetch_result($result, 0, "unread"); $marked = db_fetch_result($result, 0, "marked"); - print "

$title

"; + + $result = db_query($link, "SELECT COUNT(id) AS subscribed + FROM ttrss_feeds WHERE feed_url = '$feed_url'"); + + $subscribed = db_fetch_result($result, 0, "subscribed"); + + print "
"; + + $icon_file = ICONS_DIR . "/$feed_id.ico"; + + if (file_exists($icon_file) && filesize($icon_file) > 0) { + $feed_icon = ""; + } else { + $feed_icon = ""; + } + + print "

$feed_icon $title

"; print ""; - print ""; + print " + "; print ""; print ""; print ""; print ""; + print ""; print "
Feed URL$feed_url
Feed URL$feed_url
Last updated$last_updated
Total articles$total
Unread articles$unread
Starred articles$marked
Subscribed users$subscribed
";