summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-19 04:52:33 +0100
committerAndrew Dolgov <[email protected]>2009-01-19 04:52:33 +0100
commit8b09eac8ab7b0cd3ac6f4bc094503527912ee808 (patch)
tree591c99e1951933e1205734ee7155b570b1f7b9cb
parentd2b1c99be6b27b9bb079cc9843003235f04f2863 (diff)
add updated view mode
-rw-r--r--functions.php9
-rw-r--r--tt-rss.php1
2 files changed, 9 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index c43f71aae..f9d38ca06 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 3454a3484..3df0417b0 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -197,6 +197,7 @@ window.onload = init;
<option value="marked"><?php echo __('Starred') ?></option>
<option value="unread"><?php echo __('Unread') ?></option>
<!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> -->
+ <option value="updated"><?php echo __('Updated') ?></option>
</select>
<?php echo __('Order:') ?>