diff --git a/backend.php b/backend.php index c3805fc03..88fc5dcb3 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 2d3f07f53..b8c0b6c2c 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; }