diff options
| author | asciimoo <asciimoo@gmail.com> | 2014-02-15 07:56:48 +0100 |
|---|---|---|
| committer | asciimoo <asciimoo@gmail.com> | 2014-02-15 07:56:48 +0100 |
| commit | 84fc0c0e6d5ea451b82f14f215b75fc4c3e432ee (patch) | |
| tree | e0473e0f375f2f076ba0ead2a3bd6343bb18546e | |
| parent | ced6a94591b9c4953899fcb77197007b337ebae8 (diff) | |
[fix][#36] remembering results download categories
| -rw-r--r-- | searx/templates/results.html | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/searx/templates/results.html b/searx/templates/results.html index eb37ab33a..34195c866 100644 --- a/searx/templates/results.html +++ b/searx/templates/results.html @@ -20,30 +20,19 @@ <div id="apis"> {{ _('Download results') }} + {% for output_type in ('csv', 'json', 'rss') %} <form method="post" action="/"> <div class="left"> <input type="hidden" name="q" value="{{ q }}" /> - <input type="hidden" name="format" value="csv" /> - <input type="hidden" name="pageno" value="{{ pageno }}" /> - <input type="submit" value="csv" /> - </div> - </form> - <form method="post" action="/"> - <div class="left"> - <input type="hidden" name="q" value="{{ q }}" /> - <input type="hidden" name="format" value="json" /> - <input type="hidden" name="pageno" value="{{ pageno }}" /> - <input type="submit" value="json" /> - </div> - </form> - <form method="post" action="/"> - <div class=""> - <input type="hidden" name="q" value="{{ q }}" /> - <input type="hidden" name="format" value="rss" /> + <input type="hidden" name="format" value="{{ output_type }}" /> + {% for category in selected_categories %} + <input type="hidden" name="category_{{ category }}" value="1"/> + {% endfor %} <input type="hidden" name="pageno" value="{{ pageno }}" /> - <input type="submit" value="rss" /> + <input type="submit" value="{{ output_type }}" /> </div> </form> + {% endfor %} </div> </div> |