]> git.wh0rd.org - tt-rss.git/commitdiff
add has_note with mode
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Mar 2013 17:35:16 +0000 (21:35 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 27 Mar 2013 17:35:16 +0000 (21:35 +0400)
include/functions.php
index.php

index c2bd7673b74e2d8888aa8c5d53a2308c0572c5d1..f33de076b0d5878cac161fff2c77574ef4a32282 100644 (file)
                                $view_query_part = " marked = true AND ";
                        }
 
+                       if ($view_mode == "has_note") {
+                               $view_query_part = " (note IS NOT NULL AND note != '') AND ";
+                       }
+
                        if ($view_mode == "published") {
                                $view_query_part = " published = true AND ";
                        }
index 281f46cf924e019b72044d5041aa340f691da8ff..2c2dc9ecc6be3740a8e8701f62d0b5841e32dbed 100644 (file)
--- a/index.php
+++ b/index.php
                        <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="has_note"><?php echo __('With Note') ?></option>
                        <!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> -->
                </select>