mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-03 23:29:15 +00:00
use css nth-child instead of old even/odd class hacks for normal mode
This commit is contained in:
@@ -288,8 +288,6 @@ class Feeds extends Handler_Protected {
|
||||
$expand_cdm = get_pref('CDM_EXPANDED');
|
||||
|
||||
while ($line = $this->dbh->fetch_assoc($result)) {
|
||||
$class = ($lnum % 2) ? "even" : "odd";
|
||||
|
||||
$id = $line["id"];
|
||||
$feed_id = $line["feed_id"];
|
||||
$label_cache = $line["label_cache"];
|
||||
@@ -316,6 +314,8 @@ class Feeds extends Handler_Protected {
|
||||
array_push($topmost_article_ids, $id);
|
||||
}
|
||||
|
||||
$class = "";
|
||||
|
||||
if (sql_bool_to_bool($line["unread"])) {
|
||||
$class .= " Unread";
|
||||
++$num_unread;
|
||||
|
||||
Reference in New Issue
Block a user