@model StoryAssetDetailViewModel
@using Microsoft.AspNetCore.Mvc.Rendering
@{
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";
}
Saved asset 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
Asset edits and scene records can update these saved values. They are independent of manuscript focus.
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
{
}
@section Scripts {