1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-09 06:30:10 +01:00
searxng/searx/templates/default/results.html

96 lines
3.5 KiB
HTML
Raw Normal View History

2014-04-25 01:46:40 +02:00
{% extends "default/base.html" %}
{% block title %}{{ q }} - {% endblock %}
2013-10-14 23:09:13 +02:00
{% block content %}
2014-03-04 20:31:03 +01:00
<div class="right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div>
2014-05-09 01:27:55 +02:00
<div class="small search center">
2014-04-25 01:46:40 +02:00
{% include 'default/search.html' %}
</div>
2013-10-19 18:29:17 +02:00
<div id="results">
2014-01-30 14:26:54 +01:00
<div id="sidebar">
2014-03-04 18:53:56 +01:00
<div id="search_url">
{{ _('Search URL') }}:
2014-03-04 19:25:59 +01:00
<input type="text" value="{{ base_url }}?q={{ q|urlencode }}&pageno={{ pageno }}{% if selected_categories %}&category_{{ selected_categories|join("&category_") }}{% endif %}" readonly="" />
2014-03-04 18:53:56 +01:00
</div>
2014-01-30 14:26:54 +01:00
<div id="apis">
{{ _('Download results') }}
{% for output_type in ('csv', 'json', 'rss') %}
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
2014-01-30 14:26:54 +01:00
<div class="left">
<input type="hidden" name="q" value="{{ q }}" />
<input type="hidden" name="format" value="{{ output_type }}" />
{% for category in selected_categories %}
<input type="hidden" name="category_{{ category }}" value="1"/>
{% endfor %}
2014-01-30 14:30:07 +01:00
<input type="hidden" name="pageno" value="{{ pageno }}" />
<input type="submit" value="{{ output_type }}" />
2014-01-30 14:26:54 +01:00
</div>
</form>
{% endfor %}
2014-01-30 14:26:54 +01:00
</div>
</div>
2014-01-19 22:58:50 +01:00
2014-09-28 16:51:41 +02:00
{% if answers %}
<div id="answers"><span>{{ _('Answers') }}</span>
{% for answer in answers %}
<span>{{ answer }}</span>
{% endfor %}
</div>
{% endif %}
2014-05-10 06:39:07 +02:00
{% if suggestions %}
<div id="suggestions"><span>{{ _('Suggestions') }}</span>
{% for suggestion in suggestions %}
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
<input type="hidden" name="q" value="{{ suggestion }}">
<input type="submit" value="{{ suggestion }}" />
</form>
{% endfor %}
</div>
{% endif %}
2014-09-28 16:51:41 +02:00
{% if infoboxes %}
<div id="infoboxes">
{% for infobox in infoboxes %}
{% include 'default/infobox.html' %}
{% endfor %}
</div>
{% endif %}
2013-10-19 18:29:17 +02:00
{% for result in results %}
2013-10-22 23:32:52 +02:00
{% if result['template'] %}
2014-04-25 01:46:40 +02:00
{% include 'default/result_templates/'+result['template'] %}
2013-10-22 23:32:52 +02:00
{% else %}
2014-04-25 01:46:40 +02:00
{% include 'default/result_templates/default.html' %}
2013-10-22 23:32:52 +02:00
{% endif %}
2013-10-19 18:29:17 +02:00
{% endfor %}
2014-01-29 20:52:04 +01:00
{% if paging %}
2014-01-30 00:08:17 +01:00
<div id="pagination">
2014-01-29 20:52:04 +01:00
{% if pageno > 1 %}
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
2014-01-29 20:52:04 +01:00
<div class="left">
<input type="hidden" name="q" value="{{ q }}" />
2014-02-15 07:51:17 +01:00
{% for category in selected_categories %}
<input type="hidden" name="category_{{ category }}" value="1"/>
{% endfor %}
2014-01-29 20:52:04 +01:00
<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') }}">
2014-01-29 20:52:04 +01:00
<div class="left">
2014-02-15 07:51:17 +01:00
{% for category in selected_categories %}
<input type="hidden" name="category_{{ category }}" value="1"/>
{% endfor %}
2014-01-29 20:52:04 +01:00
<input type="hidden" name="q" value="{{ q }}" />
<input type="hidden" name="pageno" value="{{ pageno+1 }}" />
<input type="submit" value="{{ _('next page') }} >>" />
</div>
</form>
</div>
{% endif %}
2013-10-19 18:29:17 +02:00
</div>
2013-10-14 23:09:13 +02:00
{% endblock %}