aboutsummaryrefslogtreecommitdiff
path: root/app/layout
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-02-13 21:45:25 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-02-13 21:45:25 +0100
commit4dd673157b05fea5fe3643f16e22d01bbf005fe9 (patch)
treef380194b02b8127d813aed61252e8210ec5861db /app/layout
parentb77d9c60ac0cc6614ccc2711ab647d5e0a5037ed (diff)
Add possibility to anonymous to refresh feeds
Obviously, it's optional! (and deactivate by default) Need some more tests? See #351
Diffstat (limited to 'app/layout')
-rw-r--r--app/layout/nav_menu.phtml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml
index c807e6dd5..98064a6f7 100644
--- a/app/layout/nav_menu.phtml
+++ b/app/layout/nav_menu.phtml
@@ -6,9 +6,11 @@
<a class="btn toggle_aside" href="#aside_flux"><?php echo FreshRSS_Themes::icon('category'); ?></a>
<?php } ?>
- <?php if ($this->loginOk) { ?>
+ <?php if ($this->loginOk || Minz_Configuration::allowAnonymousRefresh()) { ?>
<a id="actualize" class="btn" href="<?php echo _url ('feed', 'actualize'); ?>"><?php echo FreshRSS_Themes::icon('refresh'); ?></a>
+ <?php } ?>
+ <?php if ($this->loginOk) { ?>
<?php
$get = false;
$string_mark = Minz_Translate::t ('mark_all_read');