new view mode: unread or updated

This commit is contained in:
Andrew Dolgov 2005-10-23 12:24:56 +01:00
parent 7cc6112aaa
commit bdd01d3f31
2 changed files with 5 additions and 0 deletions

View File

@ -495,6 +495,10 @@
$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

View 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: