diff options
Diffstat (limited to 'searx/templates/simple/preferences.html')
-rw-r--r-- | searx/templates/simple/preferences.html | 52 |
1 files changed, 49 insertions, 3 deletions
diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 4529fea8c..049af5e33 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -52,9 +52,9 @@ <p class="value"> <select name="autocomplete"> <option value=""> - </option> - {% for backend in autocomplete_backends %} + {%- for backend in autocomplete_backends -%} <option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option> - {% endfor %} + {%- endfor -%} </select> </p> <div class="description">{{ _('Find stuff as you type') }}</div> @@ -71,6 +71,19 @@ <div class="description">{{ _('Filter content') }}</p> </fieldset> {{ plugin_preferences('general') }} + <fieldset> + <legend>{{ _('Open Access DOI resolver') }}</legend> + <p class="value"> + <select id='doi_resolver' name='doi_resolver'> + {%- for doi_resolver_name,doi_resolver_url in doi_resolvers.items() -%} + <option value="{{ doi_resolver_name }}" {% if doi_resolver_name == current_doi_resolver %}selected="selected"{% endif %}> + {{- doi_resolver_name }} - {{ doi_resolver_url -}} + </option> + {%- endfor -%} + </select> + </p> + <div class="description"><!-- {{ _('Redirect to open-access versions of publications when available (plugin required)') }} --></div> + </fieldset> {{ tab_footer() }} {{ tab_header('maintab', 'engines', _('Engines')) }} @@ -151,6 +164,38 @@ {{ plugin_preferences('ui') }} {{ tab_footer() }} + {{ tab_header('maintab', 'cookies', _('Cookies')) }} + + <p class="text-muted" style="margin:20px 0;"> + {{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br /> + {{ _('With that list, you can assess searx 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 'oscar/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> + + {{ tab_footer() }} + {{ tab_header('maintab', 'privacy', _('Privacy')) }} <fieldset> <legend>{{ _('Method') }}</legend> @@ -173,6 +218,7 @@ <div class="description">{{ _('Proxying image results through searx') }}</div> </fieldset> {{ plugin_preferences('privacy') }} + {{ tab_footer() }} {{ tabs_close() }} @@ -180,7 +226,7 @@ <p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }} <br /> {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }} - </p> + </p> <input type="submit" value="{{ _('save') }}" /> <div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('clear_cookies') }}">{{ _('Reset defaults') }}</a></div> |