2014-04-24 23:46:40 +00:00
|
|
|
{% extends "default/base.html" %}
|
2014-01-01 21:17:36 +00:00
|
|
|
{% block head %} {% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
2014-01-21 23:17:49 +00:00
|
|
|
<h2>{{ _('Preferences') }}</h2>
|
2014-01-01 21:17:36 +00:00
|
|
|
|
2014-03-04 19:31:03 +00:00
|
|
|
<form method="post" action="{{ url_for('preferences') }}" id="search_form">
|
2014-01-01 21:17:36 +00:00
|
|
|
<fieldset>
|
2014-01-21 23:17:49 +00:00
|
|
|
<legend>{{ _('Default categories') }}</legend>
|
2015-01-15 00:48:46 +00:00
|
|
|
{% set display_tooltip = false %}
|
2014-04-24 23:46:40 +00:00
|
|
|
{% include 'default/categories.html' %}
|
2014-01-01 21:17:36 +00:00
|
|
|
</fieldset>
|
2014-01-31 03:35:23 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>{{ _('Search language') }}</legend>
|
|
|
|
<p>
|
|
|
|
<select name='language'>
|
|
|
|
<option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
|
|
|
|
{% for lang_id,lang_name,country_name in language_codes %}
|
2014-03-29 15:29:19 +00:00
|
|
|
<option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
|
2014-01-31 03:35:23 +00:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2014-01-21 23:59:18 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>{{ _('Interface language') }}</legend>
|
|
|
|
<p>
|
|
|
|
<select name='locale'>
|
|
|
|
{% for locale_id,locale_name in locales.items() %}
|
2014-03-29 15:29:19 +00:00
|
|
|
<option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<legend>{{ _('Autocomplete') }}</legend>
|
|
|
|
<p>
|
|
|
|
<select name="autocomplete">
|
|
|
|
<option value=""> - </option>
|
|
|
|
{% for backend in autocomplete_backends %}
|
|
|
|
<option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option>
|
2014-01-21 23:59:18 +00:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2015-01-16 15:58:44 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>{{ _('Image proxy') }}</legend>
|
|
|
|
<p>
|
|
|
|
<select name='image_proxy'>
|
|
|
|
<option value="1" {% if image_proxy %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
|
|
|
|
<option value="" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2014-03-29 15:45:22 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>{{ _('Method') }}</legend>
|
|
|
|
<p>
|
|
|
|
<select name='method'>
|
|
|
|
<option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
|
|
|
|
<option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2014-04-24 23:46:40 +00:00
|
|
|
<fieldset>
|
2015-02-08 20:53:37 +00:00
|
|
|
<legend>{{ _('SafeSearch') }}</legend>
|
|
|
|
<p>
|
|
|
|
<select name='safesearch'>
|
|
|
|
<option value="2" {% if safesearch == '2' %}selected="selected"{% endif %}>{{ _('Strict') }}</option>
|
|
|
|
<option value="1" {% if safesearch == '1' %}selected="selected"{% endif %}>{{ _('Moderate') }}</option>
|
|
|
|
<option value="0" {% if safesearch == '0' %}selected="selected"{% endif %}>{{ _('None') }}</option>
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
2014-04-24 23:46:40 +00:00
|
|
|
<legend>{{ _('Themes') }}</legend>
|
|
|
|
<p>
|
|
|
|
<select name="theme">
|
|
|
|
{% for name in themes %}
|
|
|
|
<option value="{{ name }}" {% if name == theme %}selected="selected"{% endif %}>{{ name }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2014-02-06 23:35:15 +00:00
|
|
|
<fieldset>
|
|
|
|
<legend>{{ _('Currently used search engines') }}</legend>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>{{ _('Engine name') }}</th>
|
|
|
|
<th>{{ _('Category') }}</th>
|
2014-02-07 00:22:32 +00:00
|
|
|
<th>{{ _('Allow') }} / {{ _('Block') }}</th>
|
2014-02-06 23:35:15 +00:00
|
|
|
</tr>
|
|
|
|
{% for (categ,search_engines) in categs %}
|
|
|
|
{% for search_engine in search_engines %}
|
|
|
|
|
|
|
|
{% if not search_engine.private %}
|
|
|
|
<tr>
|
2015-02-10 14:23:56 +00:00
|
|
|
<td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})‎</td>
|
2014-02-06 23:35:15 +00:00
|
|
|
<td>{{ _(categ) }}</td>
|
|
|
|
<td class="engine_checkbox">
|
2015-02-03 17:37:38 +00:00
|
|
|
<input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}__{{ categ }}"{% if (search_engine.name, categ) in blocked_engines %} checked="checked"{% endif %} />
|
2015-01-15 00:48:46 +00:00
|
|
|
<label class="allow" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
|
|
|
|
<label class="deny" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Block') }}</label>
|
2014-02-06 23:35:15 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</fieldset>
|
2014-01-25 15:35:43 +00:00
|
|
|
<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>
|
|
|
|
|
2014-01-21 23:59:18 +00:00
|
|
|
<input type="submit" value="{{ _('save') }}" />
|
2015-02-10 14:23:56 +00:00
|
|
|
<div class="{% if rtl %}left{% else %}right{% endif %} preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
|
2014-03-06 15:25:15 +00:00
|
|
|
</form>
|
2014-01-01 21:17:36 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|