mirror of
https://github.com/searxng/searxng.git
synced 2024-11-14 14:11:05 +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>
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<fieldset>{{- '' -}}
|
|
<legend id="pref_theme">{{- _('Theme') -}}</legend>{{- '' -}}
|
|
<div class="value">{{- '' -}}
|
|
<select name="theme" aria-labelledby="pref_theme">{{- '' -}}
|
|
{%- for name in themes -%}
|
|
<option value="{{ name }}"
|
|
{%- if name == theme %} selected="selected"{%- endif -%}>
|
|
{{- name -}}
|
|
</option>
|
|
{%- endfor -%}
|
|
</select>{{- '' -}}
|
|
</div>{{- '' -}}
|
|
<div class="description">
|
|
{{- _('Change SearXNG layout') -}}
|
|
</div>{{- '' -}}
|
|
</fieldset>{{- '' -}}
|
|
|
|
<fieldset>{{- '' -}}
|
|
<legend id="pref_simple_style">{{- _('Theme style') -}}</legend>{{- '' -}}
|
|
<div class="value">{{- '' -}}
|
|
<select name="simple_style" aria-labelledby="pref_simple_style">
|
|
{%- for name in ['auto', 'light', 'dark'] -%}
|
|
<option value="{{ name }}"
|
|
{%- if name == preferences.get_value('simple_style') %} selected="selected" {%- endif -%}>
|
|
{{- _(name) -}}
|
|
</option>
|
|
{%- endfor -%}
|
|
</select>{{- '' -}}
|
|
</div>{{- '' -}}
|
|
<div class="description">
|
|
{{- _('Choose auto to follow your browser settings') -}}
|
|
</div>{{- '' -}}
|
|
</fieldset>{{- '' -}}
|
|
|
|
{%- include 'simple/preferences/center_alignment.html' -%}
|