]> git.wh0rd.org Git - tt-rss.git/commitdiff
new view mode: unread or updated
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 23 Oct 2005 11:24:56 +0000 (12:24 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 23 Oct 2005 11:24:56 +0000 (12:24 +0100)
backend.php
tt-rss.php

index 6fe21b92369a152106e7010c76adf6d566213257..6f5e2dd5962ee9fee3efc0d1b70bf5a81e7419cc 100644 (file)
                        $view_query_part = " (unread = true OR marked = true) AND ";
                }
 
+               if ($view_mode == "Unread or Updated") {
+                       $view_query_part = " (unread = true OR last_read is NULL) AND ";
+               }
+
 /*             $result = db_query($link, "SELECT count(id) AS total_entries 
                        FROM ttrss_entries WHERE 
                        $search_query_part
index c02ca7110983888cf9712492dd5b2d6bdeab96fb..9d8160df757f158fa6ed95bd4ac45795456a4b78 100644 (file)
@@ -97,6 +97,7 @@
                        <option>Starred</option>
                        <option selected>Unread</option>
                        <option>Unread or Starred</option>
+                       <option>Unread or Updated</option>
                </select>
 
                &nbsp;Limit: