1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-23 12:31:25 +01:00
searxng/searx/templates/legacy/results.html

101 lines
4.1 KiB
HTML
Raw Normal View History

{% extends "legacy/base.html" %}
{% block title %}{{ q|e }} - {% endblock %}
{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&amp;format=rss&amp;{% for category in selected_categories %}category_{{ category }}=1&amp;{% endfor %}pageno={{ pageno }}">{% endblock %}
2013-10-14 23:09:13 +02:00
{% block content %}
<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">
{% include 'legacy/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') }}:
2015-05-19 18:58:04 +02:00
<input type="text" value="{{ base_url }}?q={{ q|urlencode }}{% if selected_categories %}&amp;categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&amp;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') }}
{% 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|e }}" />
<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 id="suggestions-title">{{ _('Suggestions') }} : </span>
{% set first = true %}
2014-05-10 06:39:07 +02:00
{% for suggestion in suggestions %}
{% if not first %} &bull; {% endif %}<form method="{{ method or 'POST' }}" action="{{ url_for('index') }}">
<input type="hidden" name="q" value="{{ suggestion.url }}">
<input type="submit" class="suggestion" value="{{ suggestion.title }}" />
2014-05-10 06:39:07 +02:00
</form>
{% set first = false %}
2014-05-10 06:39:07 +02:00
{% endfor %}
</div>
{% endif %}
2014-09-28 16:51:41 +02:00
{% if infoboxes %}
<div id="infoboxes">
{% for infobox in infoboxes %}
{% include 'legacy/infobox.html' %}
2014-09-28 16:51:41 +02:00
{% endfor %}
</div>
{% 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'] %}
{% include get_result_template('legacy', result['template']) %}
2013-10-22 23:32:52 +02:00
{% else %}
{% include 'legacy/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') }}">
<div class="{% if rtl %}right{% else %}left{% endif %}">
<input type="hidden" name="q" value="{{ q|e }}" />
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') }}">
<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|e }}" />
<input type="hidden" name="pageno" value="{{ pageno+1 }}" />
<input type="submit" value="{{ _('next page') }} >>" />
2014-01-29 20:52:04 +01:00
</div>
</form>
<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 %}