@@ -1,4 +1,4 @@
1−{% extends "default/base.html" %}
1+{% extends "courgette/base.html" %}
22{% block head %} {% endblock %}
33{% block content %}
44<div class="row">
@@ -7,95 +7,93 @@
77 <form method="post" action="{{ url_for('preferences') }}" id="search_form">
88 <fieldset>
99 <legend>{{ _('Default categories') }}</legend>
10− <p>
11− {% include 'default/categories.html' %}
12− </p>
10+ {% include 'courgette/categories.html' %}
1311 </fieldset>
1412 <fieldset>
1513 <legend>{{ _('Search language') }}</legend>
1614 <p>
17− <select name='language'>
18− <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
19− {% for lang_id,lang_name,country_name in language_codes %}
20− <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
21− {% endfor %}
22− </select>
15+ <select name='language'>
16+ <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
17+ {% for lang_id,lang_name,country_name in language_codes %}
18+ <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
19+ {% endfor %}
20+ </select>
2321 </p>
2422 </fieldset>
2523 <fieldset>
2624 <legend>{{ _('Interface language') }}</legend>
2725 <p>
28− <select name='locale'>
29− {% for locale_id,locale_name in locales.items() %}
30− <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
31− {% endfor %}
32− </select>
26+ <select name='locale'>
27+ {% for locale_id,locale_name in locales.items() %}
28+ <option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
29+ {% endfor %}
30+ </select>
3331 </p>
3432 </fieldset>
3533 <fieldset>
3634 <legend>{{ _('Autocomplete') }}</legend>
3735 <p>
38− <select name="autocomplete">
39− <option value=""> - </option>
40− {% for backend in autocomplete_backends %}
41− <option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option>
42− {% endfor %}
43− </select>
36+ <select name="autocomplete">
37+ <option value=""> - </option>
38+ {% for backend in autocomplete_backends %}
39+ <option value="{{ backend }}" {% if backend == autocomplete %}selected="selected"{% endif %}>{{ backend }}</option>
40+ {% endfor %}
41+ </select>
4442 </p>
4543 </fieldset>
4644 <fieldset>
4745 <legend>{{ _('Method') }}</legend>
4846 <p>
49− <select name='method'>
50− <option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
51− <option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
52− </select>
47+ <select name='method'>
48+ <option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
49+ <option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
50+ </select>
5351 </p>
5452 </fieldset>
5553 <fieldset>
5654 <legend>{{ _('Themes') }}</legend>
5755 <p>
58− <select name="theme">
59− {% for name in themes %}
60− <option value="{{ name }}" {% if name == theme %}selected="selected"{% endif %}>{{ name }}</option>
61− {% endfor %}
62− </select>
56+ <select name="theme">
57+ {% for name in themes %}
58+ <option value="{{ name }}" {% if name == theme %}selected="selected"{% endif %}>{{ name }}</option>
59+ {% endfor %}
60+ </select>
6361 </p>
6462 </fieldset>
6563 <fieldset>
66− <legend>{{ _('Currently used search engines') }}</legend>
67−
68− <table>
69− <tr>
70− <th>{{ _('Engine name') }}</th>
71− <th>{{ _('Category') }}</th>
72− <th>{{ _('Allow') }} / {{ _('Block') }}</th>
73− </tr>
74− {% for (categ,search_engines) in categs %}
75− {% for search_engine in search_engines %}
64+ <legend>{{ _('Currently used search engines') }}</legend>
7665
77− {% if not search_engine.private %}
66+ <table>
7867 <tr>
79− <td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})</td>
80− <td>{{ _(categ) }}</td>
81− <td class="engine_checkbox">
82− <input type="checkbox" id="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}"{% if search_engine.name in blocked_engines %} checked="checked"{% endif %} />
83− <label class="allow" for="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
84− <label class="deny" for="engine_{{ categ }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Block') }}</label>
85− </td>
68+ <th>{{ _('Engine name') }}</th>
69+ <th>{{ _('Category') }}</th>
70+ <th>{{ _('Allow') }} / {{ _('Block') }}</th>
8671 </tr>
87− {% endif %}
72+ {% for (categ,search_engines) in categs %}
73+ {% for search_engine in search_engines %}
74+
75+ {% if not search_engine.private %}
76+ <tr>
77+ <td>{{ search_engine.name }} ({{ shortcuts[search_engine.name] }})</td>
78+ <td>{{ _(categ) }}</td>
79+ <td class="engine_checkbox">
80+ <input type="checkbox" id="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}" name="engine_{{ search_engine.name }}"{% if search_engine.name in blocked_engines %} checked="checked"{% endif %} />
81+ <label class="allow" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Allow') }}</label>
82+ <label class="deny" for="engine_{{ categ|replace(' ', '_') }}_{{ search_engine.name|replace(' ', '_') }}">{{ _('Block') }}</label>
83+ </td>
84+ </tr>
85+ {% endif %}
86+ {% endfor %}
8887 {% endfor %}
89− {% endfor %}
90− </table>
88+ </table>
9189 </fieldset>
9290 <p class="small_font">{{ _('These settings are stored in your cookies, this allows us not to store this data about you.') }}
93− <br />
94− {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
91+ <br />
92+ {{ _("These cookies serve your sole convenience, we don't use these cookies to track you.") }}
9593 </p>
9694
9795 <input type="submit" value="{{ _('save') }}" />
98− <div class="right preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
96+ <div class="right preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
9997 </form>
10098</div>
101−{% endblock %}
99+{% endblock %}