diff options
author | Alexandre Flament <alex@al-f.net> | 2022-01-23 11:37:57 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-02-20 22:58:51 +0100 |
commit | 56e34947a6368e6154064c52fa23d21ecda7ab4c (patch) | |
tree | bad1463a0c3056896cfacb205039586b85a2c04d /searx/templates/simple/preferences.html | |
parent | 36aee70c247fe347c69abb17ec3bdc31781204c6 (diff) | |
download | searxng-56e34947a6368e6154064c52fa23d21ecda7ab4c.tar.gz searxng-56e34947a6368e6154064c52fa23d21ecda7ab4c.zip |
[mod] infinite_scroll as preference
* oscar theme: code from searx/plugins/infinite_scroll.py
* simple theme: new implementation
Co-authored-by: Markus Heiser <markus.heiser@darmarIT.de>
Diffstat (limited to 'searx/templates/simple/preferences.html')
-rw-r--r-- | searx/templates/simple/preferences.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index b47cbc774..275a53bf7 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -226,6 +226,18 @@ <div class="description">{{_('Open result links on new browser tabs') }}</div> </fieldset> {% endif %} + {% if 'infinite_scroll' not in locked_preferences %} + <fieldset> + <legend>{{ _('Infinite scroll') }}</legend> + <p class="value"> + <select name='infinite_scroll'> + <option value="1" {% if infinite_scroll %}selected="selected"{% endif %}>{{ _('On') }}</option> + <option value="0" {% if not infinite_scroll %}selected="selected"{% endif %}>{{ _('Off')}}</option> + </select> + </p> + <div class="description">{{ _('Automatically load next page when scrolling to bottom of current page') }}</div> + </fieldset> + {% endif %} {{ plugin_preferences('ui') }} {{ tab_footer() }} |