]> git.wh0rd.org - tt-rss.git/commitdiff
add updated view mode
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 19 Jan 2009 03:52:33 +0000 (04:52 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 19 Jan 2009 03:52:33 +0000 (04:52 +0100)
functions.php
tt-rss.php

index c43f71aaee76c9a2dea29dd9e835e0826101aadc..f9d38ca06a1cf994916c7396672765f1ccaa2999 100644 (file)
                        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;
                        } 
                                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;
index 3454a3484c66d377cb4828a8d680436d81281375..3df0417b08c045af6bcfc01d2030401d1e04e972 100644 (file)
@@ -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:') ?>