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/simple | |
| 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/simple')
| -rw-r--r-- | searx/templates/simple/results.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index c53529edd..a68449736 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -85,8 +85,9 @@ <div class="selectable_url"><pre>{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&language={{ current_language }}&time_range={{ time_range }}&safesearch={{ safesearch }}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if timeout_limit %}&timeout_limit={{ timeout_limit|urlencode }}{% endif %}</pre></div> </div> <div id="apis"> + {% if search_formats %} <h4 class="title">{{ _('Download results') }}</h4> - {% for output_type in ('csv', 'json', 'rss') %} + {% for output_type in search_formats %} <div class="left"> <form method="{{ method or 'POST' }}" action="{{ url_for('search') }}"> <input type="hidden" name="q" value="{{ q|e }}"> @@ -103,6 +104,7 @@ </form> </div> {% endfor %} + {% endif %} </div> </div> |