summaryrefslogtreecommitdiff
path: root/searx/templates/simple/preferences/cookies.html
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-06-02 15:30:02 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2023-06-02 19:05:43 +0200
commit2149e88bdd64a66d867ad1f5c46e6aa0977d837a (patch)
tree662c0ec8aa98c3c9b609fa9f4345503c94516e06 /searx/templates/simple/preferences/cookies.html
parentd289a8b22515e36d015b51c95bce716427329ca5 (diff)
[mod] template preferences: split into elements (no functional change)
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>
Diffstat (limited to 'searx/templates/simple/preferences/cookies.html')
-rw-r--r--searx/templates/simple/preferences/cookies.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/searx/templates/simple/preferences/cookies.html b/searx/templates/simple/preferences/cookies.html
new file mode 100644
index 000000000..f84251ef6
--- /dev/null
+++ b/searx/templates/simple/preferences/cookies.html
@@ -0,0 +1,45 @@
+<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 -%}&amp;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 -}}
+ &amp;save=1{{- '' -}}
+ </pre>{{- '' -}}
+</div>{{- '' -}}
+<p class="small_font">
+ {{- _('Specifying custom settings in the preferences URL can be used to sync preferences across devices.') -}}
+</p>