{% extends base %} {% from 'macro.html' import breadcrumbs with context %} {% block extrahead %} {{- super() }} {% if prev_chapter -%} {%- endif %} {% if next_chapter -%} {%- endif %} {% endblock %} {% block content %}
{{- breadcrumbs( [[url_for('story.view', pk=story.id), story.title]], current='Все главы' if allchapters else chapter.autotitle ) }}
{% if allchapters %}
{% include "includes/story_panel.html" %}

{{ story.title }}

{% for chapter in chapters %} {% include "includes/chapter_single.html" %} {% endfor %}
{% else %}
{% include "includes/story_panel.html" %} {% include "includes/chapter_single.html" %}
{% endif %}
{{- breadcrumbs( [[url_for('story.view', pk=story.id), story.title]], current='Все главы' if allchapters else chapter.autotitle ) }}
{% endblock %} {%- block modal -%} {%- if story.nsfw and not current_user.nsfw -%} {%- include 'includes/nsfw_modal.html' -%} {%- endif -%} {%- endblock -%}