forked from zaclys/searxng
[preferences] reorder tabs in simple to match oscar theme
This commit is contained in:
parent
45eb2b5637
commit
d24bcbb6f0
|
@ -169,47 +169,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ tab_footer() }}
|
{{ tab_footer() }}
|
||||||
|
|
||||||
{{ tab_header('maintab', 'engines', _('Engines')) }}
|
|
||||||
<p>{{ _('Currently used search engines') }}</p>
|
|
||||||
{{ tabs_open() }}
|
|
||||||
{% for categ in all_categories %}
|
|
||||||
{{ tab_header('enginetab', 'category' + categ, _(categ)) }}
|
|
||||||
<div class="scrollx">
|
|
||||||
<table class="striped">
|
|
||||||
<tr>
|
|
||||||
<th class="engine_checkbox">{{ _("Allow") }}</th>
|
|
||||||
<th class="name">{{ _("Engine name") }}</th>
|
|
||||||
<th class="shortcut">{{ _("Shortcut") }}</th>
|
|
||||||
<th>{{ _("Supports selected language") }}</th>
|
|
||||||
<th>{{ _("SafeSearch") }}</th>
|
|
||||||
<th>{{ _("Time range") }}</th>
|
|
||||||
<th>{{ _("Response time") }}</th>
|
|
||||||
<th>{{ _("Max time") }}</th>
|
|
||||||
<th>{{ _("Reliablity") }}</th>
|
|
||||||
</tr>
|
|
||||||
{% for search_engine in engines_by_category[categ] %}
|
|
||||||
{% if not search_engine.private %}
|
|
||||||
{% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %}
|
|
||||||
<tr>
|
|
||||||
<td class="engine_checkbox">{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}</td>
|
|
||||||
<th class="name">{% if search_engine.enable_http %}{{ icon('warning', 'No HTTPS') }}{% endif %} {{ search_engine.name }} {{ engine_about(search_engine) }}</th>
|
|
||||||
<td class="shortcut">{{ shortcuts[search_engine.name] }}</td>
|
|
||||||
<td>{{ checkbox(engine_id + '_supported_languages', supports[search_engine.name]['supports_selected_language'], true, true) }}</td>
|
|
||||||
<td>{{ checkbox(engine_id + '_safesearch', supports[search_engine.name]['safesearch'], true, true) }}</td>
|
|
||||||
<td>{{ checkbox(engine_id + '_time_range_support', supports[search_engine.name]['time_range_support'], true, true) }}</td>
|
|
||||||
{{ engine_time(search_engine.name) }}
|
|
||||||
<td class="{{ 'danger' if stats[search_engine.name]['warn_timeout'] else '' }}">{{ search_engine.timeout }}</td>
|
|
||||||
{{ engine_reliability(search_engine.name) }}
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{{ tab_footer() }}
|
|
||||||
{% endfor %}
|
|
||||||
{{ tabs_close() }}
|
|
||||||
{{ tab_footer() }}
|
|
||||||
|
|
||||||
{{ tab_header('maintab', 'ui', _('User interface')) }}
|
{{ tab_header('maintab', 'ui', _('User interface')) }}
|
||||||
{% if 'locale' not in locked_preferences %}
|
{% if 'locale' not in locked_preferences %}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -252,32 +211,73 @@
|
||||||
{{ plugin_preferences('ui') }}
|
{{ plugin_preferences('ui') }}
|
||||||
{{ tab_footer() }}
|
{{ tab_footer() }}
|
||||||
|
|
||||||
{{ tab_header('maintab', 'cookies', _('Cookies')) }}
|
{{ tab_header('maintab', 'privacy', _('Privacy')) }}
|
||||||
<p class="text-muted">
|
{% if 'method' not in locked_preferences %}
|
||||||
{{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br />
|
<fieldset>
|
||||||
{{ _('With that list, you can assess searx transparency.') }}<br />
|
<legend>{{ _('Method') }}</legend>
|
||||||
</p>
|
<p class="value">
|
||||||
{% if cookies %}
|
<select name='method'>
|
||||||
<table class="cookies">
|
<option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
|
||||||
<tr>
|
<option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
|
||||||
<th>{{ _('Cookie name') }}</th>
|
</select>
|
||||||
<th>{{ _('Value') }}</th>
|
</p>
|
||||||
</tr>
|
<div class="description">{{ _('Search language') }}</div>
|
||||||
{% for cookie in cookies %}
|
</fieldset>
|
||||||
<tr>
|
{% endif %}
|
||||||
<td>{{ cookie }}</td>
|
{% if 'image_proxy' not in locked_preferences %}
|
||||||
<td>{{ cookies[cookie] }}</td>
|
<fieldset>
|
||||||
</tr>
|
<legend>{{ _('Image proxy') }}</legend>
|
||||||
{% endfor %}
|
<p class="value">
|
||||||
</table>
|
<select name='image_proxy'>
|
||||||
{% else %}
|
<option value="1" {% if image_proxy %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
|
||||||
{% include 'oscar/messages/no_cookies.html' %}
|
<option value="" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
|
||||||
{% endif %}
|
</select>
|
||||||
<h4>{{ _('Search URL of the currently saved preferences') }} :</h4>
|
</p>
|
||||||
<div class="selectable_url">
|
<div class="description">{{ _('Proxying image results through searx') }}</div>
|
||||||
<pre>{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}</pre>
|
</fieldset>
|
||||||
</div>
|
{% endif %}
|
||||||
<p class="small_font">{{ _('Note: specifying custom settings in the search URL can reduce privacy by leaking data to the clicked result sites.') }}</p>
|
{{ plugin_preferences('privacy') }}
|
||||||
|
{{ tab_footer() }}
|
||||||
|
|
||||||
|
{{ tab_header('maintab', 'engines', _('Engines')) }}
|
||||||
|
<p>{{ _('Currently used search engines') }}</p>
|
||||||
|
{{ tabs_open() }}
|
||||||
|
{% for categ in all_categories %}
|
||||||
|
{{ tab_header('enginetab', 'category' + categ, _(categ)) }}
|
||||||
|
<div class="scrollx">
|
||||||
|
<table class="striped">
|
||||||
|
<tr>
|
||||||
|
<th class="engine_checkbox">{{ _("Allow") }}</th>
|
||||||
|
<th class="name">{{ _("Engine name") }}</th>
|
||||||
|
<th class="shortcut">{{ _("Shortcut") }}</th>
|
||||||
|
<th>{{ _("Supports selected language") }}</th>
|
||||||
|
<th>{{ _("SafeSearch") }}</th>
|
||||||
|
<th>{{ _("Time range") }}</th>
|
||||||
|
<th>{{ _("Response time") }}</th>
|
||||||
|
<th>{{ _("Max time") }}</th>
|
||||||
|
<th>{{ _("Reliablity") }}</th>
|
||||||
|
</tr>
|
||||||
|
{% for search_engine in engines_by_category[categ] %}
|
||||||
|
{% if not search_engine.private %}
|
||||||
|
{% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %}
|
||||||
|
<tr>
|
||||||
|
<td class="engine_checkbox">{{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }}</td>
|
||||||
|
<th class="name">{% if search_engine.enable_http %}{{ icon('warning', 'No HTTPS') }}{% endif %} {{ search_engine.name }} {{ engine_about(search_engine) }}</th>
|
||||||
|
<td class="shortcut">{{ shortcuts[search_engine.name] }}</td>
|
||||||
|
<td>{{ checkbox(engine_id + '_supported_languages', supports[search_engine.name]['supports_selected_language'], true, true) }}</td>
|
||||||
|
<td>{{ checkbox(engine_id + '_safesearch', supports[search_engine.name]['safesearch'], true, true) }}</td>
|
||||||
|
<td>{{ checkbox(engine_id + '_time_range_support', supports[search_engine.name]['time_range_support'], true, true) }}</td>
|
||||||
|
{{ engine_time(search_engine.name) }}
|
||||||
|
<td class="{{ 'danger' if stats[search_engine.name]['warn_timeout'] else '' }}">{{ search_engine.timeout }}</td>
|
||||||
|
{{ engine_reliability(search_engine.name) }}
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
{{ tab_footer() }}
|
||||||
|
{% endfor %}
|
||||||
|
{{ tabs_close() }}
|
||||||
{{ tab_footer() }}
|
{{ tab_footer() }}
|
||||||
|
|
||||||
{{ tab_header('maintab', 'query', _('Special Queries')) }}
|
{{ tab_header('maintab', 'query', _('Special Queries')) }}
|
||||||
|
@ -320,32 +320,32 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ tab_footer() }}
|
{{ tab_footer() }}
|
||||||
|
|
||||||
{{ tab_header('maintab', 'privacy', _('Privacy')) }}
|
{{ tab_header('maintab', 'cookies', _('Cookies')) }}
|
||||||
{% if 'method' not in locked_preferences %}
|
<p class="text-muted">
|
||||||
<fieldset>
|
{{ _('This is the list of cookies and their values searx is storing on your computer.') }}<br />
|
||||||
<legend>{{ _('Method') }}</legend>
|
{{ _('With that list, you can assess searx transparency.') }}<br />
|
||||||
<p class="value">
|
</p>
|
||||||
<select name='method'>
|
{% if cookies %}
|
||||||
<option value="POST" {% if method == 'POST' %}selected="selected"{% endif %}>POST</option>
|
<table class="cookies">
|
||||||
<option value="GET" {% if method == 'GET' %}selected="selected"{% endif %}>GET</option>
|
<tr>
|
||||||
</select>
|
<th>{{ _('Cookie name') }}</th>
|
||||||
</p>
|
<th>{{ _('Value') }}</th>
|
||||||
<div class="description">{{ _('Search language') }}</div>
|
</tr>
|
||||||
</fieldset>
|
{% for cookie in cookies %}
|
||||||
{% endif %}
|
<tr>
|
||||||
{% if 'image_proxy' not in locked_preferences %}
|
<td>{{ cookie }}</td>
|
||||||
<fieldset>
|
<td>{{ cookies[cookie] }}</td>
|
||||||
<legend>{{ _('Image proxy') }}</legend>
|
</tr>
|
||||||
<p class="value">
|
{% endfor %}
|
||||||
<select name='image_proxy'>
|
</table>
|
||||||
<option value="1" {% if image_proxy %}selected="selected"{% endif %}>{{ _('Enabled') }}</option>
|
{% else %}
|
||||||
<option value="" {% if not image_proxy %}selected="selected"{% endif %}>{{ _('Disabled') }}</option>
|
{% include 'oscar/messages/no_cookies.html' %}
|
||||||
</select>
|
{% endif %}
|
||||||
</p>
|
<h4>{{ _('Search URL of the currently saved preferences') }} :</h4>
|
||||||
<div class="description">{{ _('Proxying image results through searx') }}</div>
|
<div class="selectable_url">
|
||||||
</fieldset>
|
<pre>{{ url_for('index', _external=True) }}?preferences={{ preferences_url_params|e }}{% raw %}&q=%s{% endraw %}</pre>
|
||||||
{% endif %}
|
</div>
|
||||||
{{ plugin_preferences('privacy') }}
|
<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_footer() }}
|
||||||
|
|
||||||
{{ tabs_close() }}
|
{{ tabs_close() }}
|
||||||
|
|
Loading…
Reference in New Issue