@model ApplicationNavigationViewModel @{ var projectId = Model.Project!.ProjectID; string ActiveClass(string section) => string.Equals(Model.ActiveSection, section, StringComparison.OrdinalIgnoreCase) ? "active" : string.Empty; } @{ var storyActive = Model.ActiveSection == "Overview" || Model.ActiveSection == "Timeline" || Model.ActiveSection == "Calendar" || Model.ActiveSection == "At This Point" || Model.ActiveSection == "Threads" || Model.ActiveSection == "Scenarios" || Model.ActiveSection == "Continuity Explorer"; } @{ var charactersActive = Model.ActiveSection == "Characters" || Model.ActiveSection == "Names" || Model.ActiveSection == "Relationships"; } @{ var worldActive = Model.ActiveSection == "Assets" || Model.ActiveSection == "Locations" || Model.ActiveSection == "Floor Plans"; } @{ var toolsActive = Model.ActiveSection == "Story Bible" || Model.ActiveSection == "Metrics" || Model.ActiveSection == "Health" || Model.ActiveSection == "Warnings" || Model.ActiveSection == "Archive"; }