mirror of
https://github.com/searxng/searxng.git
synced 2024-11-18 08:51:06 +00:00
2149e88bdd
HINT: this patch has no functional change / it is the preparation for following changes and bugfixes Over the years, the preferences template became an unmanageable beast. To make the source code more readable the monolith is splitted into elements. The splitting into elements also has the advantage that a new template can make use of them. The reversed checkbox is a quirk that is only used in the prefereces and must be eliminated in the long term. For this the macro 'checkbox_onoff_reversed' was added to the preferences.html template. The 'checkbox' macro is also a quirk of the preferences.html we don't want to use in other templates (it is an input-checkbox in a HTML form that was misused for status display). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
12 lines
673 B
HTML
12 lines
673 B
HTML
<fieldset>{{- '' -}}
|
|
<legend id="pref_query_in_title">{{ _("Query in the page's title") }}</legend>
|
|
<p class="value">{{- '' -}}
|
|
<select name='query_in_title' aria-labelledby="pref_query_in_title">{{- '' -}}
|
|
<option value="1" {% if query_in_title %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>{{- '' -}}
|
|
<option value="0" {% 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>{{- '' -}}
|