]> git.wh0rd.org Git - tt-rss.git/commitdiff
add unread_first view mode
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 25 Mar 2013 18:45:40 +0000 (22:45 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 25 Mar 2013 18:45:40 +0000 (22:45 +0400)
include/functions.php
index.php

index fd92348bed72b3a9e15855a5123cab5a93fadb08..115cc0352aaa80301ac0976cacf0fbb09ca116df 100644 (file)
                                $order_by = "score DESC, $order_by";
                        }
 
+                       if ($view_mode == "unread_first") {
+                               if (!$override_order) $override_order = "unread DESC, $order_by";
+                       }
+
                        if ($override_order) {
                                $order_by = $override_order;
                        }
index 5be6d12a4d1168b502cded86356d814037c3fda3..c634235abd99688aaabd29ea136ea716ae989368 100644 (file)
--- a/index.php
+++ b/index.php
                        <option value="marked"><?php echo __('Starred') ?></option>
                        <option value="published"><?php echo __('Published') ?></option>
                        <option value="unread"><?php echo __('Unread') ?></option>
+                       <option value="unread_first"><?php echo __('Unread First') ?></option>
                        <!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> -->
                </select>