add updated view mode
This commit is contained in:
@@ -3143,7 +3143,11 @@
|
|||||||
if ($view_mode == "unread") {
|
if ($view_mode == "unread") {
|
||||||
$view_query_part = " unread = true AND ";
|
$view_query_part = " unread = true AND ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($view_mode == "updated") {
|
||||||
|
$view_query_part = " (last_read is null and unread = false) AND ";
|
||||||
|
}
|
||||||
|
|
||||||
if ($limit > 0) {
|
if ($limit > 0) {
|
||||||
$limit_query_part = "LIMIT " . $limit;
|
$limit_query_part = "LIMIT " . $limit;
|
||||||
}
|
}
|
||||||
@@ -5437,6 +5441,9 @@
|
|||||||
case "unread":
|
case "unread":
|
||||||
$message = __("No unread articles found to display.");
|
$message = __("No unread articles found to display.");
|
||||||
break;
|
break;
|
||||||
|
case "updated":
|
||||||
|
$message = __("No updated articles found to display.");
|
||||||
|
break;
|
||||||
case "marked":
|
case "marked":
|
||||||
$message = __("No starred articles found to display.");
|
$message = __("No starred articles found to display.");
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ window.onload = init;
|
|||||||
<option value="marked"><?php echo __('Starred') ?></option>
|
<option value="marked"><?php echo __('Starred') ?></option>
|
||||||
<option value="unread"><?php echo __('Unread') ?></option>
|
<option value="unread"><?php echo __('Unread') ?></option>
|
||||||
<!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> -->
|
<!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> -->
|
||||||
|
<option value="updated"><?php echo __('Updated') ?></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<?php echo __('Order:') ?>
|
<?php echo __('Order:') ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user