summaryrefslogtreecommitdiff
path: root/app/layout/nav_menu.phtml
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2014-05-04 08:57:19 -0400
committerGravatar Alexis Degrugillier <github@ainw.org> 2014-05-04 17:23:53 -0400
commit8521c876d4b2ce69ff5d4313493017f26aa2cd6b (patch)
tree36b2c4ee9f3237502a7f15c0a8e6c132ad7a53a7 /app/layout/nav_menu.phtml
parent2f51556f775045689abcde413c765cd08b85058a (diff)
Add user queries
It's an intermediary step to remove the favorite button. I add a button to store the current query as a favorite query. It redirects automatically to the configuration page where it is possible to name and remove user queries. To make the queries more straigtforward, I removed the default behavior when searching for a string. This way, when we search for a string, the filter is not defaulted to all articles.
Diffstat (limited to 'app/layout/nav_menu.phtml')
-rw-r--r--app/layout/nav_menu.phtml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml
index 9990448ba..6db172904 100644
--- a/app/layout/nav_menu.phtml
+++ b/app/layout/nav_menu.phtml
@@ -241,6 +241,14 @@
<?php echo FreshRSS_Themes::icon($icon); ?>
</a>
+ <?php if ($this->loginOk):
+ $url_query = $this->url;
+ $url_query['c'] = 'configure';
+ $url_query['a'] = 'addQuery';
+ ?>
+ <a id="save_query" class="btn" href="<?php echo Minz_Url::display ($url_query); ?>"><?php echo FreshRSS_Themes::icon('bookmark-add'); ?></a>
+ <?php endif; ?>
+
<?php $url_output['params']['output'] = 'rss'; ?>
<a class="btn view_rss" target="_blank" href="<?php echo Minz_Url::display ($url_output); ?>" title="<?php echo Minz_Translate::t ('rss_view'); ?>">
<?php echo FreshRSS_Themes::icon('rss'); ?>