Merge pull request #485 from dalf/pref_query_in_title

[mod] new preference: query_in_title
This commit is contained in:
Alexandre Flament
2021-11-24 13:10:27 +01:00
committed by GitHub
8 changed files with 42 additions and 2 deletions

View File

@@ -256,6 +256,18 @@
<div class="description">{{ _('Proxying image results through SearXNG') }}</div>
</fieldset>
{% endif %}
{% if 'query_in_title' not in locked_preferences %}
<fieldset>
<legend>{{ _('Query in the page\'s title') }}</legend>
<p class="value">
<select name='query_in_title'>
<option value="1" {% if query_in_title %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
<option value="" {% if not query_in_title %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
</select>
</p>
<div class="description">{{ _('When enabled, the result page\'s title contains your query. Your browser can record this title.') }}</div>
</fieldset>
{% endif %}
{{ plugin_preferences('privacy') }}
{{ tab_footer() }}