{% 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() %}
{%- endif %}
{{ story.bl.vote_view_html(user=current_user, full=False)|safe }}
{% include 'includes/story_marks.html' with context %}
{{ story.summary_as_html|striptags }}
{% if (stories_detail_view or current_user.detail_view) and story_chapters_count > 1 %}