From efa514a2e4a0dd58b2d071607cd0542d33c943f1 Mon Sep 17 00:00:00 2001 From: Nick Beckley Date: Sun, 7 Jun 2026 20:14:51 +0100 Subject: [PATCH] Navigation tidy up 1C --- PlotLine/Views/Archives/Index.cshtml | 21 ++++++++++++++++++++ PlotLine/Views/Books/Details.cshtml | 21 +++++++++++++------- PlotLine/Views/Chapters/Details.cshtml | 18 +++++++++++------ PlotLine/Views/Projects/Details.cshtml | 16 ++++++++------- PlotLine/Views/Scenes/Edit.cshtml | 18 +++++++++++------ PlotLine/Views/Scenes/_SceneInspector.cshtml | 6 +----- 6 files changed, 69 insertions(+), 31 deletions(-) diff --git a/PlotLine/Views/Archives/Index.cshtml b/PlotLine/Views/Archives/Index.cshtml index 4d35186..afefdaf 100644 --- a/PlotLine/Views/Archives/Index.cshtml +++ b/PlotLine/Views/Archives/Index.cshtml @@ -1,6 +1,27 @@ @model ArchivedItemsViewModel @{ ViewData["Title"] = "Archived Items"; + ViewData["ProjectSection"] = "Archive"; + var selectedProject = Model.ProjectID.HasValue + ? Model.ProjectOptions.FirstOrDefault(x => x.Value == Model.ProjectID.Value.ToString()) + : null; + var projectNavigation = Model.ProjectID.HasValue + ? new Project { ProjectID = Model.ProjectID.Value, ProjectName = selectedProject?.Text ?? "Project" } + : null; +} + + + +@if (projectNavigation is not null) +{ + }
diff --git a/PlotLine/Views/Books/Details.cshtml b/PlotLine/Views/Books/Details.cshtml index a203dfd..0cf5589 100644 --- a/PlotLine/Views/Books/Details.cshtml +++ b/PlotLine/Views/Books/Details.cshtml @@ -23,14 +23,21 @@
Edit book - Timeline - Story health Add chapter -
- - - -
+
diff --git a/PlotLine/Views/Chapters/Details.cshtml b/PlotLine/Views/Chapters/Details.cshtml index a7dea1f..ba219a3 100644 --- a/PlotLine/Views/Chapters/Details.cshtml +++ b/PlotLine/Views/Chapters/Details.cshtml @@ -27,15 +27,21 @@
Edit chapter - Timeline Chapter workflow Chapter brief Add scene -
- - - -
+
diff --git a/PlotLine/Views/Projects/Details.cshtml b/PlotLine/Views/Projects/Details.cshtml index bf7cbbe..2309176 100644 --- a/PlotLine/Views/Projects/Details.cshtml +++ b/PlotLine/Views/Projects/Details.cshtml @@ -20,18 +20,19 @@

@Model.Project.Description

} - diff --git a/PlotLine/Views/Scenes/_SceneInspector.cshtml b/PlotLine/Views/Scenes/_SceneInspector.cshtml index 0058e31..306ed37 100644 --- a/PlotLine/Views/Scenes/_SceneInspector.cshtml +++ b/PlotLine/Views/Scenes/_SceneInspector.cshtml @@ -230,14 +230,10 @@
- @if (!Model.ReturnToTimeline) - { - Back to chapter - }
-@if (Model.SceneID > 0) +@if (Model.SceneID > 0 && Model.ReturnToTimeline) {