aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/display.phtml10
-rw-r--r--app/views/helpers/javascript_vars.phtml1
2 files changed, 11 insertions, 0 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml
index 6f8e3e1b4..64dcf1b84 100644
--- a/app/views/configure/display.phtml
+++ b/app/views/configure/display.phtml
@@ -232,6 +232,16 @@
</div>
<div class="form-group">
+ <div class="group-controls">
+ <label class="checkbox" for="html5_enable_notif">
+ <input type="checkbox" name="html5_enable_notif" id="html5_enable_notif" value="1"<?=
+ FreshRSS_Context::userConf()->html5_enable_notif ? ' checked="checked"' : '' ?> />
+ <?= _t('conf.notification.html5_enable_notif') ?>
+ </label>
+ </div>
+ </div>
+
+ <div class="form-group">
<label class="group-name" for="html5_notif_timeout"><?= _t('conf.display.notif_html5.timeout') ?></label>
<div class="group-controls">
<input type="number" min="0" max="60" id="html5_notif_timeout" name="html5_notif_timeout" value="<?=
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index 73e047e11..f2203f56e 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -24,6 +24,7 @@ echo json_encode([
'does_lazyload' => !!FreshRSS_Context::userConf()->lazyload ,
'sides_close_article' => !!FreshRSS_Context::userConf()->sides_close_article,
'sticky_post' => !!FreshRSS_Context::isStickyPostEnabled(),
+ 'html5_enable_notif' => FreshRSS_Context::userConf()->html5_enable_notif,
'html5_notif_timeout' => FreshRSS_Context::userConf()->html5_notif_timeout,
'closeNotification' => [
'good' => FreshRSS_Context::userConf()->good_notification_timeout * 1000,