@model LocationDetailViewModel
@{
ViewData["DesktopLayout"] = "details";
ViewData["Title"] = Model.Location.LocationName;
ViewData["ProjectSection"] = "Locations";
IReadOnlyList<(string Id, string Label)> tabs =
[("overview", "Overview"), ("reference", "Reference"), ("hierarchy", "Hierarchy"),
("relationships", "Relationships"), ("usage", "Usage"), ("geography", "Geography")];
var requestedTab = ViewData["LocationTab"] as string;
var activeTab = tabs.Any(tab => tab.Id == requestedTab) ? requestedTab! : "overview";
var knownNames = Model.Aliases
.Select(x => x.Alias)
.Append(Model.Location.LocationName)
.Where(name => !string.IsNullOrWhiteSpace(name))
.Distinct(StringComparer.OrdinalIgnoreCase)
.OrderBy(name => !string.Equals(name, Model.Location.LocationName, StringComparison.OrdinalIgnoreCase))
.ThenBy(name => name, StringComparer.OrdinalIgnoreCase)
.ToList();
}
Type
@(Model.Location.LocationTypeName ?? "Not set")
Description
@(Model.Location.Description ?? "No description yet.")
Parent
@(Model.Location.ParentLocationName ?? "Top level")
No child locations yet.
} else {No relationships defined yet.
} else {@relationship.Notes
@SceneLabel(scene.ChapterNumber, scene.SceneNumber) @scene.SceneTitle
} @if (!Model.Scenes.Any()) {No scenes set here.
}@character.CharacterName @SceneLabel(character.ChapterNumber, character.SceneNumber)
} @if (!Model.Characters.Any()) {No character placements yet.
}@asset.AssetName @asset.Description
} @if (!Model.Assets.Any()) {No asset placements yet.
}Loading…