logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: d1dd6364c9ee5b1ae78596ad4dcd7e38837927a8
parent: 3b72cfabe2ba3341fccbe44b19191c76da582319
Author: asciimoo <asciimoo@gmail.com>
Date:   Mon, 25 Nov 2013 09:04:46 +0100

[enh] csv/json download buttons

Diffstat:

searx/templates/results.html | 14++++++++++++++
searx/templates/search.html | 2+-
2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/searx/templates/results.html b/searx/templates/results.html @@ -18,5 +18,19 @@ {% include 'result_templates/default.html' %} {% endif %} {% endfor %} + <form method="post" action=""> + <div class="left"> + <input type="hidden" name="q" value="{{ q }}" /> + <input type="hidden" name="format" value="csv" /> + <input type="submit" value="download results in csv" /> + </div> + </form> + <form method="post" action=""> + <div class=""> + <input type="hidden" name="q" value="{{ q }}" /> + <input type="hidden" name="format" value="json" /> + <input type="submit" value="download results in json" /> + </div> + </form> </div> {% endblock %} diff --git a/searx/templates/search.html b/searx/templates/search.html @@ -1,4 +1,4 @@ -<form method="post" action="/" id="search_form"> +<form method="post" action="" id="search_form"> <div id="search_wrapper"> <input type="text" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/> <input type="submit" value="" id="search_submit" />