PlotDirector/PlotLine/Views/Writer/_WriterProgress.cshtml

10 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model WriterDashboardViewModel
@{var totals = Model.Activity?.Totals; var latest = Model.Activity?.Events.FirstOrDefault(x => x.Kind != "Observation");}
@if(Model.ActivityIsPrivate){<p class="muted">Activity evidence is private to the book owner. You can still use the chapter and scene workspaces.</p>}
else if(totals?.HasAcceptedEvidence == true){
<div class="writer3-stat-grid" aria-label="Recorded manuscript changes in the last 30 days">
<div><strong>+@totals.Added.ToString("N0")</strong><span>Words added</span></div><div><strong>−@totals.Removed.ToString("N0")</strong><span>Words removed</span></div><div><strong>@totals.Net.ToString("+0;-0;0")</strong><span>Net change</span></div>
</div><p class="writer3-caption">Accepted changes · last 30 days. Recorded activity is not a judgement of writing quality.</p>
}else{<div class="writer3-inset"><h3>Your history starts with recorded evidence</h3><p>No accepted manuscript changes are available yet. An accepted baseline starts tracking from the manuscript you have; earlier writing is not reconstructed.</p></div>}
<p class="writer3-caption">@(latest != null ? $"{latest.WordsAfter:N0} words at the last accepted snapshot" : $"{Model.Book?.CurrentWordCount ?? 0:N0} catalogued words") · @(Model.Book?.ChapterCount ?? 0) chapters · @(Model.Book?.SceneCount ?? 0) scenes</p>