{% 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() %}
{{ story.summary_as_html|striptags }}
{% if (stories_detail_view or current_user.detail_view) and story_chapters_count > 1 %}