mirror of
https://github.com/searx/searx
synced 2024-11-16 15:09:54 +01:00
[enh] add image proxy toggle to preferences templates
This commit is contained in:
parent
f3d7af33fd
commit
0a3b9a7b00
@ -41,6 +41,15 @@
|
|||||||
</select>
|
</select>
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<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>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{ _('Method') }}</legend>
|
<legend>{{ _('Method') }}</legend>
|
||||||
<p>
|
<p>
|
||||||
@ -96,4 +105,4 @@
|
|||||||
<div class="right preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
|
<div class="right preferences_back"><a href="{{ url_for('index') }}">{{ _('back') }}</a></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -42,6 +42,15 @@
|
|||||||
</select>
|
</select>
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<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>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{ _('Method') }}</legend>
|
<legend>{{ _('Method') }}</legend>
|
||||||
<p>
|
<p>
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
<div class="row form-group">
|
<div class="row form-group">
|
||||||
<label class="col-sm-3 col-md-2">{{ _('Autocomplete') }}</label>
|
<label class="col-sm-3 col-md-2">{{ _('Autocomplete') }}</label>
|
||||||
<div class="col-sm-4 col-md-4">
|
<div class="col-sm-4 col-md-4">
|
||||||
|
|
||||||
<select class="form-control" name="autocomplete">
|
<select class="form-control" name="autocomplete">
|
||||||
<option value=""> - </option>
|
<option value=""> - </option>
|
||||||
{% for backend in autocomplete_backends %}
|
{% for backend in autocomplete_backends %}
|
||||||
@ -62,6 +62,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<span class="col-sm-5 col-md-6 help-block">{{ _('Find stuff as you type') }}</span>
|
<span class="col-sm-5 col-md-6 help-block">{{ _('Find stuff as you type') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row form-group">
|
||||||
|
<label class="col-sm-3 col-md-2">{{ _('Image proxy') }}</label>
|
||||||
|
<div class="col-sm-4 col-md-4">
|
||||||
|
<select class="form-control" 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>
|
||||||
|
</div>
|
||||||
|
<span class="col-sm-5 col-md-6 help-block">{{ _('Proxying image results through searx') }}</span>
|
||||||
|
</div>
|
||||||
<div class="row form-group">
|
<div class="row form-group">
|
||||||
<label class="col-sm-3 col-md-2">{{ _('Method') }}</label>
|
<label class="col-sm-3 col-md-2">{{ _('Method') }}</label>
|
||||||
<div class="col-sm-4 col-md-4">
|
<div class="col-sm-4 col-md-4">
|
||||||
@ -87,18 +97,18 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane active_if_nojs" id="tab_engine">
|
<div class="tab-pane active_if_nojs" id="tab_engine">
|
||||||
|
|
||||||
<!-- Nav tabs -->
|
<!-- Nav tabs -->
|
||||||
<ul class="nav nav-tabs hide_if_nojs" role="tablist" style="margin-bottom:20px;">
|
<ul class="nav nav-tabs hide_if_nojs" role="tablist" style="margin-bottom:20px;">
|
||||||
{% for (categ,search_engines) in categs %}
|
{% for (categ,search_engines) in categs %}
|
||||||
<li{% if loop.first %} class="active"{% endif %}><a href="#tab_engine_{{ categ|replace(' ', '_') }}" role="tab" data-toggle="tab">{{ _(categ) }}</a></li>
|
<li{% if loop.first %} class="active"{% endif %}><a href="#tab_engine_{{ categ|replace(' ', '_') }}" role="tab" data-toggle="tab">{{ _(categ) }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<h3>{{ _('Engines') }}</h3>
|
<h3>{{ _('Engines') }}</h3>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<!-- Tab panes -->
|
<!-- Tab panes -->
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
{% for (categ,search_engines) in categs %}
|
{% for (categ,search_engines) in categs %}
|
||||||
@ -136,6 +146,6 @@
|
|||||||
|
|
||||||
<input type="submit" class="btn btn-primary" value="{{ _('save') }}" />
|
<input type="submit" class="btn btn-primary" value="{{ _('save') }}" />
|
||||||
<a href="{{ url_for('index') }}"><div class="btn btn-default">{{ _('back') }}</div></a>
|
<a href="{{ url_for('index') }}"><div class="btn btn-default">{{ _('back') }}</div></a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user