@foreach (var scene in chapterScenes)
{
var previous = orderedScenes.TakeWhile(x => x.SceneID != scene.SceneID).LastOrDefault();
var next = orderedScenes.SkipWhile(x => x.SceneID != scene.SceneID).Skip(1).FirstOrDefault();
}
Scene @scene.SceneNumber:g
@scene.SceneTitle
@scene.Summary
@if (!string.IsNullOrWhiteSpace(scene.ThreadLabels)) { Threads: @scene.ThreadLabels }
@if (!string.IsNullOrWhiteSpace(scene.AssetLabels)) { Assets: @scene.AssetLabels }
@if (!string.IsNullOrWhiteSpace(scene.CharacterLabels)) { Characters: @scene.CharacterLabels }
@if (!string.IsNullOrWhiteSpace(scene.LocationLabel)) { Location: @scene.LocationLabel }
@if (previous is not null)
{
}
@if (next is not null)
{
}
Open scene