mirror of https://github.com/searxng/searxng
Ajax loading + Tweaks of CSS
parent
d740e7384a
commit
e181041f11
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 238 B |
Binary file not shown.
After Width: | Height: | Size: 7.1 KiB |
@ -1,44 +1,32 @@
|
|||||||
|
{% if pageno > 1 %}
|
||||||
|
{% for result in results %}
|
||||||
|
{% set index = loop.index %}
|
||||||
|
{% include 'pix-art/result_templates/default.html' %}
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
{% extends "pix-art/base.html" %}
|
{% extends "pix-art/base.html" %}
|
||||||
{% block title %}{{ q }} - {% endblock %}
|
{% block title %}{{ q }} - {% endblock %}
|
||||||
{% block meta %}{% endblock %}
|
{% block meta %}{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div id="logo"><a href="./"><img src="{{ url_for('static', filename='img/searx-pixel-small.png') }}" alt="Searx Logo"/></a></div>
|
||||||
<div class="preferences_container right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div>
|
<div class="preferences_container right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div>
|
||||||
<div class="small search center">
|
<div class="small search center">
|
||||||
{% include 'pix-art/search.html' %}
|
{% include 'pix-art/search.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
favicons[{{ pageno }}] = [];
|
||||||
|
</script>
|
||||||
<div id="results">
|
<div id="results">
|
||||||
|
<span id="results_list">
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
{% set index = loop.index %}
|
{% set index = loop.index %}
|
||||||
{% include 'pix-art/result_templates/default.html' %}
|
{% include 'pix-art/result_templates/default.html' %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</span>
|
||||||
{% if paging %}
|
|
||||||
<div id="pagination">
|
<div id="pagination">
|
||||||
{% if pageno > 1 %}
|
|
||||||
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
|
||||||
<div class="{% if rtl %}right{% else %}left{% endif %}">
|
|
||||||
<input type="hidden" name="q" value="{{ q }}" />
|
|
||||||
{% for category in selected_categories %}
|
|
||||||
<input type="hidden" name="category_{{ category }}" value="1"/>
|
|
||||||
{% endfor %}
|
|
||||||
<input type="hidden" name="pageno" value="{{ pageno-1 }}" />
|
|
||||||
<input type="submit" value="<< {{ _('previous page') }}" />
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
|
||||||
<div class="{% if rtl %}left{% else %}right{% endif %}">
|
|
||||||
{% for category in selected_categories %}
|
|
||||||
<input type="hidden" name="category_{{ category }}" value="1"/>
|
|
||||||
{% endfor %}
|
|
||||||
<input type="hidden" name="q" value="{{ q }}" />
|
|
||||||
<input type="hidden" name="pageno" value="{{ pageno+1 }}" />
|
|
||||||
<input type="submit" value="{{ _('next page') }} >>" />
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
<input type="button" onclick="load_more('{{ q }}', {{ pageno+1 }})" id="load_more" value="{{ _('Load more...') }}" />
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% endif %}
|
Loading…
Reference in New Issue