diff options
| author | Dalf <alex@al-f.net> | 2014-01-05 20:27:13 +0100 |
|---|---|---|
| committer | Dalf <alex@al-f.net> | 2014-01-05 20:27:13 +0100 |
| commit | 7915b5c5a08afbdc8fd2144866e2d5d9f0591696 (patch) | |
| tree | 6d44cfcfec878bef9d88249516f8059deb3d6531 /searx/templates | |
| parent | 5c9f6d51746796ef63cd08d27c31e931272e083f (diff) | |
[mod] web page modification
Diffstat (limited to 'searx/templates')
| -rw-r--r-- | searx/templates/categories.html | 4 | ||||
| -rw-r--r-- | searx/templates/results.html | 26 | ||||
| -rw-r--r-- | searx/templates/search.html | 8 |
3 files changed, 20 insertions, 18 deletions
diff --git a/searx/templates/categories.html b/searx/templates/categories.html index 4c693f3dd..ec9c2e7d0 100644 --- a/searx/templates/categories.html +++ b/searx/templates/categories.html @@ -1,5 +1,7 @@ +<div id="categories"> {% 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> + <input type="checkbox" id="checkbox_{{ category|replace(' ', '_') }}" name="category_{{ category }}" {% if category in selected_categories %}checked="checked"{% endif %} /></label><label for="checkbox_{{ category|replace(' ', '_') }}">{{ category }}</label> </div> {% endfor %} +</div> diff --git a/searx/templates/results.html b/searx/templates/results.html index c20f2d862..1f3153624 100644 --- a/searx/templates/results.html +++ b/searx/templates/results.html @@ -1,8 +1,8 @@ {% extends "base.html" %} {% block title %}{{ q }} - {% endblock %} {% block content %} -<div class="right"><a href="/preferences">preferences</a></div> -<div class="small"> +<div class="right"><a href="/preferences" id="preferences"><span>preferences</span></a></div> +<div class="small search"> {% include 'search.html' %} </div> <div id="results"> @@ -19,19 +19,21 @@ {% include 'result_templates/default.html' %} {% endif %} {% endfor %} - <form method="post" action="/"> + <div id="apis"> + <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" /> + <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="/"> + </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" /> + <input type="hidden" name="q" value="{{ q }}" /> + <input type="hidden" name="format" value="json" /> + <input type="submit" value="download results in json" /> </div> - </form> + </form> + </div> </div> {% endblock %} diff --git a/searx/templates/search.html b/searx/templates/search.html index 12d507335..92ce5a72c 100644 --- a/searx/templates/search.html +++ b/searx/templates/search.html @@ -1,9 +1,7 @@ <form method="post" action="/" id="search_form"> -<div id="search_wrapper"> + <div id="search_wrapper"> <input type="text" id="q" class="q" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/> <input type="submit" value="" id="search_submit" /> -</div> - <div> - {% include 'categories.html' %} - </div> + </div> + {% include 'categories.html' %} </form> |