mirror of
https://github.com/searxng/searxng.git
synced 2024-11-18 02:10:12 +01: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>
46 lines
1.5 KiB
HTML
46 lines
1.5 KiB
HTML
<p class="text-muted">
|
|
{{- _('This is the list of cookies and their values SearXNG is storing on your computer.') }}
|
|
<br />{{- _('With that list, you can assess SearXNG transparency.') -}}
|
|
<br />{{- '' -}}
|
|
</p>
|
|
{% if cookies %}
|
|
<table class="cookies">
|
|
<tr>{{- '' -}}
|
|
<th>{{ _('Cookie name') }}</th>{{- '' -}}
|
|
<th>{{ _('Value') }}</th>{{- '' -}}
|
|
</tr>
|
|
{%- for cookie in cookies -%}
|
|
<tr>{{- '' -}}
|
|
<td>{{ cookie }}</td>{{- '' -}}
|
|
<td>{{ cookies[cookie] }}</td>{{- '' -}}
|
|
</tr>
|
|
{%- endfor -%}
|
|
</table>
|
|
{%- else -%}
|
|
{% include 'simple/messages/no_cookies.html' %}
|
|
{% endif %}
|
|
<h4>
|
|
{{- _('Search URL of the currently saved preferences') -}}:{{- '' -}}
|
|
</h4>{{- '' -}}
|
|
<div class="selectable_url">{{- '' -}}
|
|
<pre>
|
|
{{- url_for('index', _external=True) -}}?preferences={{- preferences_url_params|e -}}
|
|
{%- raw -%}&q=%s{%- endraw -%}
|
|
</pre>{{- '' -}}
|
|
</div>{{- '' -}}
|
|
<p class="small_font">
|
|
{{- _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') -}}
|
|
</p>
|
|
<h4>
|
|
{{- _('URL to restore your preferences in another browser') -}}:{{- '' -}}
|
|
</h4>{{- '' -}}
|
|
<div class="selectable_url">{{- '' -}}
|
|
<pre>
|
|
{{- url_for('preferences', _external=True) -}}?preferences={{- preferences_url_params|e -}}
|
|
&save=1{{- '' -}}
|
|
</pre>{{- '' -}}
|
|
</div>{{- '' -}}
|
|
<p class="small_font">
|
|
{{- _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') -}}
|
|
</p>
|