logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: a3de9ba56c592b99f2c654c37af0861806a45d1f
parent: 11fdd8e8ac2021d6c72cd82217f1b999f1b788ca
Author: asciimoo <asciimoo@gmail.com>
Date:   Wed,  1 Jan 2014 22:16:21 +0100

[mod] separating categories

Diffstat:

searx/templates/categories.html | 5+++++
searx/templates/search.html | 6+-----
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/searx/templates/categories.html b/searx/templates/categories.html @@ -0,0 +1,5 @@ +{% for category in categories %} + <div class="checkbox_container"> + <input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category|replace(' ', '_') }}" class="cb"></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label> + </div> +{% endfor %} diff --git a/searx/templates/search.html b/searx/templates/search.html @@ -4,10 +4,6 @@ <input type="submit" value="" id="search_submit" /> </div> <div> - {% for category in categories %} - <div class="checkbox_container"> - <input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /><label for="checkbox_{{ category|replace(' ', '_') }}" class="cb"></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label> - </div> - {% endfor %} + {% include 'categories.html' %} </div> </form>