@model StoryAssetDetailViewModel @{ ViewData["DesktopLayout"] = "details"; ViewData["Title"] = Model.Asset.AssetName; ViewData["ProjectSection"] = "Assets"; IReadOnlyList<(string Id, string Label)> tabs = [("overview", "Overview"), ("reference", "Reference"), ("dependencies", "Dependencies"), ("scene-history", "Scene history")]; var requestedTab = Context.Request.Query["tab"].ToString(); var activeTab = tabs.Any(tab => tab.Id == requestedTab) ? requestedTab : "overview"; }
@if (TempData["AssetMessage"] is string assetMessage) {
@assetMessage
}

Current state

@if (!string.IsNullOrWhiteSpace(Model.Asset.Description)) {

@Model.Asset.Description

} @if (Model.Aliases.Count > 0) {

Aliases: @string.Join(", ", Model.Aliases)

}

Importance: @Model.Asset.Importance / 10

State: @(Model.Asset.CurrentStateName ?? "No state")

Location: @(Model.Asset.CurrentLocationPath ?? "No location")

Resolved: @(Model.Asset.IsResolved ? "Yes" : "No")

@await Component.InvokeAsync("StoryElementReferences", new { entityType = PlotLine.Data.StoryElementType.Asset, entityId = Model.Asset.StoryAssetID })

Dependencies

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

No dependencies yet.

} else {
@foreach (var dependency in Model.Dependencies) {
@dependency.SourceAssetName @dependency.DependencyTypeName.ToLowerInvariant() @dependency.TargetAssetName @dependency.SourceRequiredStateName before @dependency.TargetBlockedStateName @if (!string.IsNullOrWhiteSpace(dependency.Description)) { @dependency.Description }
}
}

Events across scenes

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

No scene events yet.

} else {
@foreach (var assetEvent in Model.Events) {
@assetEvent.MarkerText
@assetEvent.EventTitle @assetEvent.BookDisplayTitle / Ch @assetEvent.ChapterNumber / Scene @assetEvent.SceneNumber: @assetEvent.SceneTitle @assetEvent.FromStateName -> @assetEvent.ToStateName Open in timeline
}
}

Custody

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

No custody events yet.

} else {
@foreach (var custody in Model.CustodyEvents) {
@custody.CustodyEventTypeName @custody.CustodianSummary @custody.BookDisplayTitle / Ch @custody.ChapterNumber / Scene @custody.SceneNumber: @custody.SceneTitle Open in timeline
}
}
@section Scripts { }