{% extends base %} {% from 'macro.html' import breadcrumbs with context %} {% block content %}
{{- breadcrumbs() }}

Поиск рассказов

{{ form.q }} {{ form.type }}
(справка)
{{ form.button_sort }} {{ form.button_filters }} {{ form.button_advanced }}

Сортировать

{{ form.sort }}

Фильтры поиска

Жанры

{{ form.genre }}

Персонажи

{{ form.char }}

Дополнительные настройки поиска:

Происхождение

{{ form.original }}

Статус рассказа

{{ form.finished }}

Активность

{{ form.freezed }}

Рейтинг

{{ form.rating }}

Размер рассказа

{{ form.min_words }}—{{ form.max_words }}

События

{{ form.cls }}

{% if error %}

{{ error }}

{% if error_type == 'syntax' %} {% if form.extsyntax.data %}

Попробуйте отключить расширенный синтаксис поиска, если он вам не нужен.

{% else %}

Кажется, что-то пошло не так.

{% endif %} {% endif %}
{% else %}
{% if search_type == 0 %} {% if result %}

{{ ngettext("Found %(num)d story", "Found %(num)d stories", total) }}

{% endif %} {% if weights and config['DEBUG'] %}
Weights:
{% for x in weights %}{{ x[0] }}: {{ x[1] }}
{% endfor %}
{% endif -%} {% with stories = result %} {% include "includes/stories.html" %} {% endwith %} {% else %} {% if result %}

{{ ngettext("Found %(num)d chapter", "Found %(num)d chapters", total) }}

{% else %}

Здесь пока ничего нет

{% endif %} {% for chapter, excerpt in result %}

{{ chapter.autotitle }}

{{ excerpt|safe }}

Глава из рассказа {{ chapter.story.title }} от {{ chapter.story.authors[0].username }}

{% endfor %} {% endif %} {% if result %} {% endif %}
{% endif %}
{{- breadcrumbs() }}
{% endblock %}