mirror of
https://github.com/searxng/searxng.git
synced 2024-12-24 02:00:29 +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>
16 lines
738 B
HTML
16 lines
738 B
HTML
<fieldset>{{- '' -}}
|
|
<legend id="pref_doi_resolver">{{- _('Open Access DOI resolver') -}}</legend>{{- '' -}}
|
|
<div class="value">{{- '' -}}
|
|
<select id='doi_resolver' name='doi_resolver' aria-labelledby="pref_doi_resolver">{{- '' -}}
|
|
{%- for doi_resolver_name,doi_resolver_url in doi_resolvers.items() -%}
|
|
<option value="{{ doi_resolver_name }}"
|
|
{%- if doi_resolver_url == current_doi_resolver %} selected="selected" {%- endif -%}>
|
|
{{- doi_resolver_name }} - {{ doi_resolver_url -}}
|
|
</option>
|
|
{%- endfor -%}
|
|
</select>{{- '' -}}
|
|
</div>{{- '' -}}
|
|
<div class="description">
|
|
{{- _('Select service used by DOI rewrite') -}}
|
|
</div>{{- '' -}}
|
|
</fieldset>{{- '' -}}
|