diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-05-28 13:26:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-28 13:26:48 +0200 |
| commit | 83ccf7b04d4a86e385c88eaacbf7212479caacde (patch) | |
| tree | 029d5760847c99e263ca0505fc55f1e4834d353c /searx/templates/oscar | |
| parent | b48b4c93d586f52418295a15a1c93934f007c41f (diff) | |
| parent | 96b223023acc1a1b0642a70246b71c2a3a05cd03 (diff) | |
Merge pull request #99 from return42/webapp-misc
[enh] add settings option to enable/disable search formats
Diffstat (limited to 'searx/templates/oscar')
| -rw-r--r-- | searx/templates/oscar/results.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index ec84e489b..b5bedcd44 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -80,9 +80,10 @@ <input id="search_url" type="url" class="form-control select-all-on-click cursor-text" name="search_url" value="{{ search_url() }}" readonly>{{- "" -}} </div>{{- "" -}} </form> + {% if search_formats %} <label>{{ _('Download results') }}</label> <div class="clearfix"></div> - {% for output_type in ('csv', 'json', 'rss') %} + {% for output_type in search_formats %} <form method="{{ method or 'POST' }}" action="{{ url_for('search') }}" class="form-inline pull-{% if rtl %}right{% else %}left{% endif %} result_download"> {{- search_form_attrs(pageno) -}} <input type="hidden" name="format" value="{{ output_type }}">{{- "" -}} @@ -90,8 +91,11 @@ </form> {% endfor %} <div class="clearfix"></div> + {% if 'rss' in search_formats %} <br /><label><a href="{{ search_url() }}&format=rss">{{ _('RSS subscription') }}</a></label> + {% endif %} <div class="clearfix"></div> + {% endif %} </div> </div> </div><!-- /#sidebar_results --> |