@model LocationDetailViewModel
@using System.Text.Json
@using PlotLine.Models
@{
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"), ("spatial", "Spatial awareness")];
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.")
Rows are the starting locations. Columns are the destinations. Select a cell to inspect both directions.
No @kind.ToLowerInvariant() recorded here.
}Loading…