From cea04d61a243089db7c4680c19d61cc57786aadf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 6 Oct 2009 13:37:24 +0400 Subject: prefs: small usability improvements, feed panel allows searching for category --- modules/pref-feeds.php | 12 ++++++++++++ modules/pref-filters.php | 4 ++-- modules/pref-labels.php | 4 ++-- modules/pref-users.php | 4 ++-- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 0a5db475f..6aec17336 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1157,6 +1157,7 @@ if ($feed_search) { $search_qpart = "(UPPER(F1.title) LIKE UPPER('%$feed_search%') OR + UPPER(C1.title) LIKE UPPER('%$feed_search%') OR UPPER(F1.feed_url) LIKE UPPER('%$feed_search%')) AND"; } else { $search_qpart = ""; @@ -1406,6 +1407,17 @@ } print ""; + } else { + + print "

"; + + if (!$feed_search) { + print_warning(__("You don't have any subscribed feeds.")); + } else { + print_warning(__('No matching feeds found.')); + } + print "

"; + } print "

".__('OPML')."

diff --git a/modules/pref-filters.php b/modules/pref-filters.php index e8e1cd60e..c85751adb 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -510,9 +510,9 @@ print "

"; if (!$filter_search) { - print __('No filters defined.'); + print_warning(__('No filters defined.')); } else { - print __('No matching filters found.'); + print_warning(__('No matching filters found.')); } print "

"; diff --git a/modules/pref-labels.php b/modules/pref-labels.php index dd44c7865..165765b89 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -237,9 +237,9 @@ } else { print "

"; if (!$label_search) { - print __('No labels defined.'); + print_warning(__('No labels defined.')); } else { - print __('No matching labels found.'); + print_warning(__('No matching labels found.')); } print "

"; diff --git a/modules/pref-users.php b/modules/pref-users.php index 73313a8ad..7e38fd5d4 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -478,9 +478,9 @@ } else { print "

"; if (!$user_search) { - print __('No users defined.'); + print_warning(__('No users defined.')); } else { - print __('No matching users found.'); + print_warning(__('No matching users found.')); } print "

"; -- cgit v1.2.3