8.1 KiB
8.1 KiB
{% extends "simple/base.html" %}
{% from 'simple/macros.html' import icon, icon_small %}
{% block title %}{% if method == 'GET' %}{{- q|e -}} -{% endif %}{% endblock %}
{% block meta %}{% endblock %}
{% block content %}
{{ icon('navicon-round') }}
{% include 'simple/search.html' %}
{% if results and results|map(attribute='template')|unique|list|count == 1 %}
{% set only_template = 'only_template_' + results[0]['template']|default('default')|replace('.html', '') %}
{% else %}
{% set unique_template = '' %}
{% endif %}
{% if answers -%}
{%- endif %}
{% if corrections %}
{% endif %}
{% endblock %}
{{ _('Answers') }} :
{%- for answer in answers -%}{{- answer -}}
{%- endfor -%}
{{ _('Try searching for:') }}
{% for correction in corrections %}
{% if timeout_limit %}{% endif %}
{% endfor %}
{% for result in results %}
{% set index = loop.index %}
{% if result['template'] %}
{% include get_result_template('simple', result['template']) %}
{% else %}
{% include 'simple/result_templates/default.html' %}
{% endif %}
{% endfor %}
{% if not results and not answers %}
{% include 'simple/messages/no_results.html' %}
{% endif %}
{% if paging %}
{% if pageno > 1 %}
{% for category in selected_categories %}
{% endfor %}
{% if timeout_limit %}{% endif %}
{{ icon_small('chevron-left') }} {{ _('previous page') }}
{% endif %}
{% for category in selected_categories %}
{% endfor %}
{% if timeout_limit %}{% endif %}
{{ _('next page') }} {{ icon_small('chevron-right') }}
{% endif %}