103 lines
5.5 KiB
Plaintext
103 lines
5.5 KiB
Plaintext
@model PlotLineWorkspaceInspectorViewModel
|
|
<div class="plot-inspector-header">
|
|
<div><p class="eyebrow">Scene contribution</p><h2>@Model.Scene.SceneTitle</h2></div>
|
|
<button type="button" class="btn-close" data-inspector-close aria-label="Close"></button>
|
|
</div>
|
|
<p class="muted">Scene @Model.Scene.SceneNumber.ToString("0.##") · @Model.Scene.TimeModeName</p>
|
|
<div class="button-row">
|
|
<a class="btn btn-primary btn-sm" asp-controller="Scenes" asp-action="Edit" asp-route-id="@Model.Scene.SceneID">Open scene</a>
|
|
<a class="btn btn-outline-secondary btn-sm" asp-controller="Writing" asp-action="Index" asp-route-projectId="@Model.ProjectID" asp-route-bookId="@Model.BookID" asp-route-sceneId="@Model.Scene.SceneID">Open in Writer</a>
|
|
</div>
|
|
<nav class="plot-inspector-tabs" aria-label="Inspector sections">
|
|
<button type="button" data-inspector-tab="contribution" class="active">Contribution</button>
|
|
<button type="button" data-inspector-tab="scene">Scene</button>
|
|
<button type="button" data-inspector-tab="lines">Other lines</button>
|
|
<button type="button" data-inspector-tab="evidence">Evidence</button>
|
|
</nav>
|
|
<section data-inspector-panel="contribution">
|
|
@if (Model.Memberships.Count == 0) { <p class="muted">This scene has no canonical plot-line contribution.</p> }
|
|
@foreach (var membership in Model.Memberships)
|
|
{
|
|
<div class="plot-inspector-membership" style="--line-colour:@membership.Colour">
|
|
<h3>@membership.PlotLineName</h3>
|
|
@foreach (var contribution in membership.Contributions)
|
|
{
|
|
<article><strong>@contribution.CanonicalRole · @contribution.ThreadTitle</strong>
|
|
<p>@(string.IsNullOrWhiteSpace(contribution.CanonicalDescription) ? contribution.CanonicalTitle : contribution.CanonicalDescription)</p>
|
|
<small>@contribution.CanonicalStructuralType · @contribution.ThreadStatusName</small>
|
|
</article>
|
|
}
|
|
@foreach (var thread in Model.Threads.Where(x => x.PlotLineID == membership.PlotLineID))
|
|
{
|
|
<details class="plot-thread-boundaries">
|
|
<summary>@thread.ThreadTitle boundaries</summary>
|
|
<dl class="plot-facts">
|
|
<dt>Introduced</dt><dd>@(thread.IntroducedSceneLabel ?? "Not recorded")</dd>
|
|
<dt>Planned resolution</dt><dd>@(thread.PlannedResolutionSceneLabel ?? "Not recorded")</dd>
|
|
<dt>Actual resolution</dt><dd>@(thread.ActualResolutionSceneLabel ?? "Not recorded")</dd>
|
|
</dl>
|
|
</details>
|
|
}
|
|
</div>
|
|
}
|
|
</section>
|
|
<section data-inspector-panel="scene" hidden>
|
|
<dl class="plot-facts">
|
|
<dt>Summary</dt><dd>@(Model.Scene.Summary ?? "Not recorded")</dd>
|
|
<dt>Time</dt><dd>@(Model.Scene.StartDateTime?.ToString("g") ?? Model.Scene.RelativeTimeText ?? Model.Scene.TimeModeName)</dd>
|
|
<dt>Purpose</dt><dd>@(Model.Scene.ScenePurposeNotes ?? "Not recorded")</dd>
|
|
<dt>Outcome</dt><dd>@(Model.Scene.SceneOutcomeNotes ?? "Not recorded")</dd>
|
|
</dl>
|
|
@if (Model.Scene.IsLinkedToManuscript)
|
|
{
|
|
<button type="button" class="btn btn-outline-secondary btn-sm" data-manuscript-load="@Model.Scene.SceneID">Load manuscript excerpt</button>
|
|
<div id="plot-manuscript-content"></div>
|
|
}
|
|
</section>
|
|
<section data-inspector-panel="lines" hidden>
|
|
@foreach (var membership in Model.Memberships)
|
|
{
|
|
<p><span class="plot-line-dot" style="background:@membership.Colour"></span> <strong>@membership.PlotLineName</strong> · @membership.Contributions.Count contribution@(membership.Contributions.Count == 1 ? "" : "s")</p>
|
|
}
|
|
@if (Model.Targets.Count > 0)
|
|
{
|
|
<h3>Explicit cross-line connections</h3>
|
|
@foreach (var target in Model.Targets)
|
|
{
|
|
<p><strong>@target.SourcePlotLineName</strong> → <strong>@target.TargetPlotLineName</strong><br /><small>@target.StructuralType</small></p>
|
|
}
|
|
}
|
|
@if (Model.Dependencies.Count > 0)
|
|
{
|
|
<h3>Scene dependencies</h3>
|
|
@foreach (var dependency in Model.Dependencies)
|
|
{
|
|
<p><strong>@dependency.DependencyType</strong> · Scene @dependency.SourceSceneID → @dependency.TargetSceneID<br /><small>@dependency.Description</small></p>
|
|
}
|
|
}
|
|
</section>
|
|
<section data-inspector-panel="evidence" hidden>
|
|
@foreach (var contribution in Model.Memberships.SelectMany(x => x.Contributions))
|
|
{
|
|
<article class="plot-evidence">
|
|
<strong>@contribution.ThreadTitle</strong>
|
|
<p><b>Canonical:</b> @contribution.CanonicalTitle</p>
|
|
@if (contribution.CandidateMatchState == "SourceReferenceID + SceneID")
|
|
{
|
|
<p><b>Imported support:</b> @contribution.CandidateTitle</p>
|
|
@if (!string.IsNullOrWhiteSpace(contribution.CandidateDescription)) { <p>@contribution.CandidateDescription</p> }
|
|
@if (!string.IsNullOrWhiteSpace(contribution.CandidateEvidence)) { <blockquote>@contribution.CandidateEvidence</blockquote> }
|
|
}
|
|
else if (contribution.Source == "WholeBookPlotSynthesis")
|
|
{
|
|
<p class="muted">Imported support match: @contribution.CandidateMatchState</p>
|
|
}
|
|
</article>
|
|
}
|
|
@if (Model.Suggestions.Count > 0)
|
|
{
|
|
<h3>Pending suggestions</h3>
|
|
@foreach (var suggestion in Model.Suggestions) { <p><strong>@suggestion.CandidateTitle</strong><br />@suggestion.Evidence</p> }
|
|
}
|
|
</section>
|