{% for story in stories %} {%- set story_chapters_count = chapters_count_cache.get(story.id, 0) if chapters_count_cache is defined else story.chapters.count() %}
{{ story.summary_as_html|striptags }}
{% if current_user.detail_view and story_chapters_count > 1 %}