aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-11-16 18:10:55 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-11-16 18:10:55 +0100
commit2c50ed7dc1c11571e3af0ee163e414cc321be2ca (patch)
tree93005d06594a95a28f5fcf1a2c55cf2d7bd974d2 /app/views
parent4b374ce991b28d179afaf3e4a02a90cb82affa08 (diff)
parent960f86ba20fdf7320c957141a9983d17c7e521fa (diff)
Merge pull request #694 from FreshRSS/hide-article
Add a feature to hide articles when they are read
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/reading.phtml10
-rw-r--r--app/views/helpers/javascript_vars.phtml1
2 files changed, 11 insertions, 0 deletions
diff --git a/app/views/configure/reading.phtml b/app/views/configure/reading.phtml
index b8f673466..0f7a3347a 100644
--- a/app/views/configure/reading.phtml
+++ b/app/views/configure/reading.phtml
@@ -116,6 +116,16 @@
</div>
<div class="form-group">
+ <div class="group-controls">
+ <label class="checkbox" for="auto_remove_article">
+ <input type="checkbox" name="auto_remove_article" id="auto_remove_article" value="1"<?php echo FreshRSS_Context::$conf->auto_remove_article ? ' checked="checked"' : ''; ?> />
+ <?php echo _t('auto_remove_article'); ?>
+ <noscript> — <strong><?php echo _t('javascript_should_be_activated'); ?></strong></noscript>
+ </label>
+ </div>
+ </div>
+
+ <div class="form-group">
<label class="group-name"><?php echo _t('auto_read_when'); ?></label>
<div class="group-controls">
<label class="checkbox" for="check_open_article">
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index 8e9141d4e..6424d8d04 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -18,6 +18,7 @@ $url_logout = Minz_Url::display(array(
), 'php');
echo 'var context={',
+ 'auto_remove_article:', FreshRSS_Context::isAutoRemoveAvailable() ? 'true' : 'false', ',',
'hide_posts:', $hide_posts ? 'false' : 'true', ',',
'display_order:"', Minz_Request::param('order', FreshRSS_Context::$conf->sort_order), '",',
'auto_mark_article:', $mark['article'] ? 'true' : 'false', ',',