@let bookChapters = chapters(); @if (bookChapters.length === 0) { @if (loading()) { } @else {
{{t('no-data')}}
} } @else if (isDisplayingChildrenOnly()) {
} @else { @for (chapterGroup of displayedChapters(); track chapterGroup.title + chapterGroup.children.length) {
  • {{chapterGroup.title}}
  • @for(chapter of chapterGroup.children; track chapter.title + chapter.part) { }
} }