From 9b30724847bcdcee2127d166f221b762d7981570 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Aug 2005 08:05:16 +0100 Subject: [PATCH] inline feed editor improvements --- backend.php | 18 ++++++++++++++++-- tt-rss.css | 9 +++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/backend.php b/backend.php index c3805fc0..88fc5dcb 100644 --- a/backend.php +++ b/backend.php @@ -525,11 +525,15 @@ while ($line = pg_fetch_assoc($result)) { $class = ($lnum % 2) ? "even" : "odd"; - + $feed_id = $line["id"]; $edit_feed_id = $_GET["id"]; + if ($subop == "edit" && $feed_id != $edit_feed_id) { + $class .= "Grayed"; + } + print ""; $icon_file = ICONS_DIR . "/$feed_id.ico"; @@ -542,7 +546,7 @@ } print "$feed_icon"; - if ($feed_id != $edit_feed_id || $subop != "edit" ) { + if (!$edit_feed_id || $subop != "edit") { print ""; @@ -551,6 +555,16 @@ $line["title"] . ""; print "" . $line["feed_url"] . ""; + + + } else if ($feed_id != $edit_feed_id) { + + print ""; + + print "".$line["title"].""; + print "".$line["feed_url"].""; + } else { print ""; diff --git a/tt-rss.css b/tt-rss.css index 2d3f07f5..b8c0b6c2 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -184,6 +184,15 @@ table.main td.notify { } +.evenGrayed { + background-color : #f0f0f0; + color : #909090; +} + +.oddGrayed { + color : #909090; +} + .even { background-color : #f0f0f0; } -- 2.39.5