{% for story in stories %} {%- set story_chapters_count = chapters_count_cache.get(story.id, 0) if chapters_count_cache is defined else story.bl.select_accessible_chapters(current_user).count() %}
{% include 'includes/story_control_buttons.html' with context %}

{{ story.title }} {% if story.pinned -%} Pin {%- endif %} {% include 'includes/story_stars.html' with context %} {% include 'includes/story_marks.html' with context %}

{% include 'includes/story_reader_buttons.html' with context %} {%- for category in story.categories|sort(attribute='id') -%} {{ category.name }} {%- endfor -%} {{ ngettext("%(num)d word", "%(num)d words", story.words) }} от {% include 'includes/story_authors_list.html' %} {% if current_user.is_authenticated and current_user.detail_view %}
{{- ngettext("%(num)d view", "%(num)d views", story.views) }}, {{ ngettext("%(num)d comment", "%(num)d comments", story.comments_count) -}} {% set delta = 0 if activities is defined and not activities.get(story.id) else story_comments_delta(story, current_user, activity=activities and activities.get(story.id)) %} {% if delta > 0 %} (+{{ delta }}) {% endif %} {% endif %}

{{ story.summary_as_html|striptags }}

{% if current_user.detail_view and story_chapters_count > 1 %}
{% endif %}

{%- for character in story.characters|sort(attribute='id') -%} {{ character.name }} {%- endfor -%}

{% else %}

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

{% endfor %}