aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-10-28 01:24:44 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-28 01:24:44 +0200
commitf0fa3f32021525325a5f7c658d7e787dea2fc799 (patch)
treeb84341b4fd1e36ea8a5a3e7bece3c60bf26761d5 /app/views
parent6fce5aa77cc9af1f4aee516da7bfaa3c6a53e068 (diff)
New shortcut: actualize feeds (#3900)
* configs * i18n * improved * Update app/i18n/fr/conf.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update p/scripts/main.js Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update main.js * Update conf.php * make fix-all * i18n * i18n * i18n: delete conf.shortcut.actualize * Update app/views/configure/shortcut.phtml
Diffstat (limited to 'app/views')
-rw-r--r--app/views/configure/shortcut.phtml8
-rw-r--r--app/views/helpers/javascript_vars.phtml1
2 files changed, 9 insertions, 0 deletions
diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtml
index ff94fcf56..b04689d2a 100644
--- a/app/views/configure/shortcut.phtml
+++ b/app/views/configure/shortcut.phtml
@@ -186,6 +186,14 @@
<legend><?= _t('conf.shortcut.other_action') ?></legend>
<div class="form-group">
+ <label class="group-name" for="actualize"><?= _t('gen.action.actualize') ?></label>
+ <div class="group-controls">
+ <input type="text" id="actualize" name="shortcuts[actualize]" list="keys" value="<?= $s['actualize'] ?>"
+ data-leave-validation="<?= $s['actualize'] ?>" />
+ </div>
+ </div>
+
+ <div class="form-group">
<label class="group-name" for="load_more_shortcut"><?= _t('conf.shortcut.load_more') ?></label>
<div class="group-controls">
<input type="text" id="load_more_shortcut" name="shortcuts[load_more]" list="keys" value="<?= $s['load_more'] ?>"
diff --git a/app/views/helpers/javascript_vars.phtml b/app/views/helpers/javascript_vars.phtml
index 232068da1..256b6bf5f 100644
--- a/app/views/helpers/javascript_vars.phtml
+++ b/app/views/helpers/javascript_vars.phtml
@@ -23,6 +23,7 @@ echo htmlspecialchars(json_encode(array(
'csrf' => FreshRSS_Auth::csrfToken(),
),
'shortcuts' => array(
+ 'actualize' => @$s['actualize'],
'mark_read' => @$s['mark_read'],
'mark_favorite' => @$s['mark_favorite'],
'go_website' => @$s['go_website'],