From: Andrew Dolgov Date: Mon, 19 Jan 2009 03:52:33 +0000 (+0100) Subject: add updated view mode X-Git-Tag: 1.3.0~63 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8b09eac8ab7b0cd3ac6f4bc094503527912ee808;p=tt-rss.git add updated view mode --- diff --git a/functions.php b/functions.php index c43f71aa..f9d38ca0 100644 --- a/functions.php +++ b/functions.php @@ -3143,7 +3143,11 @@ if ($view_mode == "unread") { $view_query_part = " unread = true AND "; } - + + if ($view_mode == "updated") { + $view_query_part = " (last_read is null and unread = false) AND "; + } + if ($limit > 0) { $limit_query_part = "LIMIT " . $limit; } @@ -5437,6 +5441,9 @@ case "unread": $message = __("No unread articles found to display."); break; + case "updated": + $message = __("No updated articles found to display."); + break; case "marked": $message = __("No starred articles found to display."); break; diff --git a/tt-rss.php b/tt-rss.php index 3454a348..3df0417b 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -197,6 +197,7 @@ window.onload = init; +