@model BookDetailViewModel @{ ViewData["Title"] = Model.Book.BookTitle; ViewData["ProjectSection"] = "Overview"; } @if (TempData["ArchiveMessage"] is string archiveMessage) {
@archiveMessage
} @if (TempData["ManuscriptMessage"] is string manuscriptMessage) {
@manuscriptMessage
}

@Model.Project.ProjectName

Book @Model.Book.BookNumber: @Model.Book.BookTitle

@if (!string.IsNullOrWhiteSpace(Model.Book.Subtitle)) {

@Model.Book.Subtitle

} @if (!string.IsNullOrWhiteSpace(Model.Book.Tagline)) {

@Model.Book.Tagline

} @if (!string.IsNullOrWhiteSpace(Model.Book.Description)) {

@Model.Book.Description

}
Edit book Add chapter

Book metadata

@Model.Book.Status
@Model.Book.CurrentWordCount.ToString("N0") current words
@(Model.Book.TargetWordCount?.ToString("N0") ?? "Not set") target words
@(Model.Book.ProgressPercentage.HasValue ? $"{Model.Book.ProgressPercentage:0.#}%" : "Not set") progress
@Model.Book.ChapterCount.ToString("N0") chapters
@Model.Book.SceneCount.ToString("N0") scenes
@(Model.Book.WritingStartDate?.ToString("dd MMM yyyy") ?? "Not set") writing start
@(Model.Book.TargetCompletionDate?.ToString("dd MMM yyyy") ?? "Not set") target completion
@(Model.Book.PublicationDate?.ToString("dd MMM yyyy") ?? "Not set") publication
@if (Model.ManuscriptDocument is null) { No manuscript linked } else { Manuscript linked Last synced: @(Model.ManuscriptDocument.LastSyncUtc?.ToString("dd MMM yyyy HH:mm") ?? "Never")
} Manuscript Status
@if (!string.IsNullOrWhiteSpace(Model.Book.ShortDescription)) {

@Model.Book.ShortDescription

}

Chapters

@if (!Model.Chapters.Any()) {

No chapters yet.

} else {
@foreach (var chapter in Model.Chapters) { }
Chapter Title Status Manuscript Summary
@chapter.ChapterNumber @chapter.ChapterTitle @chapter.RevisionStatusName @if (!string.IsNullOrWhiteSpace(chapter.ChapterPurposeName)) { @chapter.ChapterPurposeName } @(chapter.IsLinkedToManuscript ? "🔗 Linked" : "📝 Planned") @chapter.Summary Edit
}