{% extends base %} {% from 'macro.html' import breadcrumbs with context %} {% block extrahead %} {{- super() }} {% if page_obj.has_previous() -%} {%- endif %} {% if page_obj.has_next() -%} {%- endif %} {% if page_current == -1 -%} {%- endif -%} {% endblock %} {% block content %}
{{- breadcrumbs() }}
{% if chapters|length > 1 %}

Содержание

{% include "includes/story_panel.html" %}
    {% for chapter in chapters %}
  • {{ chapter.autotitle }} {% if chapter.draft %}{{ _('Draft') }}{% endif %} {% if story.bl.editable_by(current_user) %}Редактировать{% endif %}

    {{ ngettext("%(num)d word", "%(num)d words", chapter.words) }}, {{ ngettext("%(num)d view", "%(num)d views", chapter.views) }}
  • {% endfor %}
{% elif chapters|length > 0 %} {% with chapter=chapters[0] %} {% include "includes/story_panel.html" %} {% include "includes/chapter_single.html" %} {% endwith %} {% endif %}
{% if current_user.is_staff or story.bl.is_contributor(current_user) %}

Комментарии бета-читателей и редакторов ({{ local_comments_count }}) {%- if new_local_comments_count > 0 %} (+{{ new_local_comments_count }}){% endif %}

{% endif %}

Комментарии ({{ comments_count }})

{% if current_user.is_authenticated %}
Получать новые:
{% endif %}
{% if comments_count > 0 %} {%- include 'includes/comments_tree.html' -%} {%- endif %}
{% if story.bl.can_comment_by(current_user) %} Добавить новый комментарий
{% from 'macro.html' import comment_form_content with context %} {{ comment_form_content(comment_form, 'story', story.id, preview_html=preview_html) }}
{% elif not story.published %}

В неопубликованном рассказе нельзя добавлять комментарии

{% elif current_user.is_authenticated %}

К сожалению, Вы не можете добавлять комментарии

{% else %} Авторизуйтесь для отправки комментария. {% endif %}
{% endblock %} {%- block modal -%} {%- if story.nsfw and not current_user.nsfw -%} {%- include 'includes/nsfw_modal.html' -%} {%- endif -%} {%- endblock -%}