1
0
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:
Andrew Dolgov
2013-05-04 12:01:53 +04:00
parent 72c29b65d4
commit 8d090a910b
6 changed files with 6 additions and 55 deletions

View File

@@ -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;