2014-04-25 01:46:40 +02:00
|
|
|
{% extends "default/base.html" %}
|
2013-12-01 23:51:31 +01:00
|
|
|
{% block title %}{{ q }} - {% endblock %}
|
2015-01-15 01:48:46 +01:00
|
|
|
{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&format=rss&{% for category in selected_categories %}category_{{ category }}=1&{% endfor %}pageno={{ pageno }}">{% endblock %}
|
2013-10-14 23:09:13 +02:00
|
|
|
{% block content %}
|
2014-10-26 11:14:05 +01:00
|
|
|
<div class="preferences_container 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' %}
|
2013-10-19 19:55:43 +02:00
|
|
|
</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') }}:
|
2015-05-19 18:58:04 +02:00
|
|
|
<input type="text" value="{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}" readonly />
|
2014-03-04 18:53:56 +01:00
|
|
|
</div>
|
2014-01-30 14:26:54 +01:00
|
|
|
<div id="apis">
|
|
|
|
{{ _('Download results') }}
|
2014-02-15 07:56:48 +01:00
|
|
|
{% for output_type in ('csv', 'json', 'rss') %}
|
2014-03-29 16:45:22 +01:00
|
|
|
<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 }}" />
|
2014-02-15 07:56:48 +01:00
|
|
|
<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 }}" />
|
2014-02-15 07:56:48 +01:00
|
|
|
<input type="submit" value="{{ output_type }}" />
|
2014-01-30 14:26:54 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
2014-02-15 07:56:48 +01:00
|
|
|
{% 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 %}
|
2015-01-15 01:48:46 +01:00
|
|
|
<div id="suggestions"><span id="suggestions-title">{{ _('Suggestions') }} : </span>
|
|
|
|
{% set first = true %}
|
2014-05-10 06:39:07 +02:00
|
|
|
{% for suggestion in suggestions %}
|
2015-01-15 01:48:46 +01:00
|
|
|
{% if not first %} • {% endif %}<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
2014-05-10 06:39:07 +02:00
|
|
|
<input type="hidden" name="q" value="{{ suggestion }}">
|
2015-01-15 01:48:46 +01:00
|
|
|
<input type="submit" class="suggestion" value="{{ suggestion }}" />
|
2014-05-10 06:39:07 +02:00
|
|
|
</form>
|
2015-01-15 01:48:46 +01:00
|
|
|
{% set first = false %}
|
2014-05-10 06:39:07 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-01-12 18:31:57 +01:00
|
|
|
|
2014-09-28 16:51:41 +02:00
|
|
|
{% if infoboxes %}
|
|
|
|
<div id="infoboxes">
|
|
|
|
{% for infobox in infoboxes %}
|
|
|
|
{% include 'default/infobox.html' %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2015-01-15 01:48:46 +01:00
|
|
|
{% endif %}
|
2014-09-28 16:51:41 +02:00
|
|
|
|
2013-10-19 18:29:17 +02:00
|
|
|
{% for result in results %}
|
2013-10-22 23:32:52 +02:00
|
|
|
{% if result['template'] %}
|
2015-01-01 18:59:53 +01:00
|
|
|
{% include get_result_template('default', 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 %}
|
2014-03-29 16:45:22 +01:00
|
|
|
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
2015-02-10 15:23:56 +01:00
|
|
|
<div class="{% if rtl %}right{% else %}left{% endif %}">
|
2014-01-29 20:52:04 +01:00
|
|
|
<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 %}
|
2014-03-29 16:45:22 +01:00
|
|
|
<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
|
2015-02-10 15:23:56 +01:00
|
|
|
<div class="{% if rtl %}left{% else %}right{% endif %}">
|
2015-01-15 01:48:46 +01:00
|
|
|
{% 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') }} >>" />
|
2014-01-29 20:52:04 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
2014-10-26 11:14:05 +01:00
|
|
|
|
|
|
|
<br />
|
2014-01-29 20:52:04 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2013-10-19 18:29:17 +02:00
|
|
|
</div>
|
2013-10-14 23:09:13 +02:00
|
|
|
{% endblock %}
|