forked from Ponysearch/Ponysearch
[enh][mod] template refactor
This commit is contained in:
parent
3373b2c298
commit
0531706287
3 changed files with 11 additions and 13 deletions
|
@ -5,14 +5,6 @@
|
||||||
</a>
|
</a>
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<h1>searx</h1>
|
<h1>searx</h1>
|
||||||
<form method="post" action="">
|
{% include 'search.html' %}
|
||||||
<input type="text" name="q" tabindex="1" autocomplete="off" />
|
|
||||||
<input type="submit" value="search" />
|
|
||||||
<p>
|
|
||||||
{% for engine in engines %}
|
|
||||||
{{ engine }}: <input type="checkbox" name="engine_{{ engine }}" checked="checked"/>
|
|
||||||
{% endfor %}
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form method="post" action="">
|
{% include 'search.html' %}
|
||||||
<input type="text" name="q" value="{{ q }}" autocomplete="off" />
|
|
||||||
<input type="submit" value="search" />
|
|
||||||
</form>
|
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
<div class="result">
|
<div class="result">
|
||||||
<h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
|
<h3 class="result_title"><a href="{{ result.url }}">{{ result.title|safe }}</a></h3>
|
||||||
|
|
9
searx/templates/search.html
Normal file
9
searx/templates/search.html
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<form method="post" action="">
|
||||||
|
<input type="text" name="q" tabindex="1" autocomplete="off" {% if q %}value="{{ q }}"{% endif %}/>
|
||||||
|
<input type="submit" value="search" />
|
||||||
|
<p>
|
||||||
|
{% for engine in engines %}
|
||||||
|
{{ engine }}: <input type="checkbox" name="engine_{{ engine }}" checked="checked"/>
|
||||||
|
{% endfor %}
|
||||||
|
</p>
|
||||||
|
</form>
|
Loading…
Reference in a new issue