{% extends "base.html" %} {% block content %} {% set workGated = story.nsfw and archive.config.hideNsfw %}

{{ story.title }} Entire Work {% if not story.published %}Draft{% endif %} {% if story.nsfw %}NSFW{% elif story.hasNsfwContent %}Contains NSFW{% endif %}

{% if story.author %} {% endif %} {% include "_meta_block.html" %}
Chapter Index {% if story.chapters %} Chapter-by-Chapter View {% endif %}
{% if story.summaryHtml %}

Summary

{{ story.summaryHtml | safe }}
{% endif %} {% if not workGated and story.notesHtml %} {% endif %} {% if story.chapters | length > 1 %} {% endif %}
{% if workGated %}
{% if story.notesHtml %} {% endif %} {% endif %} {% for chapter in story.chapters %} {% set chGated = (not workGated) and chapter.nsfw and archive.config.hideNsfw %}

{{ chapter.displayTitle }} {% if not chapter.published %}Draft{% endif %} {% if chapter.nsfw %}NSFW{% elif chapter.hasNsfwSections %}Contains NSFW{% endif %}

{{ chapter.wordCount | format_num }} words{% if chapter.hasExplicitDate %} · {% endif %}

{% if chapter.summaryHtml %}

Chapter Summary

{{ chapter.summaryHtml | safe }}
{% endif %} {% if not chGated %} {% if chapter.notesHtml %} {% elif chapter.endnotesHtml %}

See the end of this chapter for notes.

{% endif %} {% endif %}
{% if chGated %}
{% if chapter.notesHtml %} {% elif chapter.endnotesHtml %}

See the end of this chapter for notes.

{% endif %}
{{ chapter.bodyHtml | safe }}
{% if chapter.endnotesHtml %} {% endif %}
{% else %}
{{ chapter.bodyHtml | safe }}
{% if chapter.endnotesHtml %} {% endif %} {% endif %}
{% endfor %} {% if story.endnotesHtml %} {% endif %} {% if workGated %}
{% endif %}
{% endblock %}