PlotDirector/PlotLine/Views/Writing/_WritingIntentThreads.cshtml

30 lines
1.1 KiB
Plaintext

@model WritingIntentDisplayViewModel
@{
var scene = Model.Context?.Scene;
var threadEvents = scene?.ThreadEvents.ToList() ?? [];
static string TextOr(string? value, string fallback) => string.IsNullOrWhiteSpace(value) ? fallback : value.Trim();
}
<div class="writing-context-grid">
<article class="writing-context-card writing-context-card--wide">
<p class="eyebrow">Story Threads</p>
@if (!threadEvents.Any())
{
<p>No story thread events recorded for this scene.</p>
}
else
{
<ul class="writing-context-list">
@foreach (var item in threadEvents)
{
<li>
<strong>@item.PlotLineName / @item.ThreadTitle</strong>
<span class="writing-intent-status-label">@TextOr(item.EventTypeName, "Thread event")</span>
<p>@TextOr(item.EventTitle, item.EventDescription ?? "Thread intention recorded here.")</p>
</li>
}
</ul>
}
</article>
</div>