add Unread or Starred view mode
This commit is contained in:
parent
b3a9daddcc
commit
b5aa95e736
|
@ -489,6 +489,10 @@
|
||||||
$view_query_part = " unread = true AND ";
|
$view_query_part = " unread = true AND ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($view_mode == "Unread or Starred") {
|
||||||
|
$view_query_part = " (unread = true OR marked = true) AND ";
|
||||||
|
}
|
||||||
|
|
||||||
/* $result = db_query($link, "SELECT count(id) AS total_entries
|
/* $result = db_query($link, "SELECT count(id) AS total_entries
|
||||||
FROM ttrss_entries WHERE
|
FROM ttrss_entries WHERE
|
||||||
$search_query_part
|
$search_query_part
|
||||||
|
|
|
@ -90,6 +90,7 @@
|
||||||
<option>All Articles</option>
|
<option>All Articles</option>
|
||||||
<option>Starred</option>
|
<option>Starred</option>
|
||||||
<option selected>Unread</option>
|
<option selected>Unread</option>
|
||||||
|
<option>Unread or Starred</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
Limit:
|
Limit:
|
||||||
|
|
Loading…
Reference in New Issue