mirror of https://github.com/searxng/searxng.git
Move preferences URLs to `url_card.html`
This commit is contained in:
parent
9716b8b4d2
commit
e910db57df
|
@ -181,32 +181,7 @@
|
|||
{%- include 'simple/preferences/doi_resolver.html' -%}
|
||||
{%- endif -%}
|
||||
{%- include 'simple/preferences/tokens.html' -%}
|
||||
<div class="saved_prefs_url_card">
|
||||
<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>
|
||||
</div>
|
||||
{%- include 'simple/preferences/url_card.html' -%}
|
||||
{{- tab_footer() -}}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
<div class="saved_prefs_url_card">
|
||||
<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>
|
||||
</div>
|
Loading…
Reference in New Issue