From: Andrew Dolgov Date: Fri, 26 Aug 2005 07:05:16 +0000 (+0100) Subject: inline feed editor improvements X-Git-Tag: 1.0~7 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9b30724847bcdcee2127d166f221b762d7981570;p=tt-rss.git inline feed editor improvements --- 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; }