From 486b53d9d723006ae2b3b35346d9f6f75e2a9d1b Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 26 Dec 2023 20:35:21 +0000 Subject: [PATCH] feat: separate completed/retired projects also changes the colours for Hiatus from red to orange, red now signifying Retired --- OliverBooth/Data/Web/ProjectStatus.cs | 5 ++++- OliverBooth/Pages/Projects/Project.cshtml | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/OliverBooth/Data/Web/ProjectStatus.cs b/OliverBooth/Data/Web/ProjectStatus.cs index 9e52969..a3cbf49 100644 --- a/OliverBooth/Data/Web/ProjectStatus.cs +++ b/OliverBooth/Data/Web/ProjectStatus.cs @@ -14,5 +14,8 @@ public enum ProjectStatus Hiatus, [Description("The project is no longer being worked on.")] - Past + Past, + + [Description("The project has been retired with no plans for completion.")] + Retired, } diff --git a/OliverBooth/Pages/Projects/Project.cshtml b/OliverBooth/Pages/Projects/Project.cshtml index d537c73..b9c9933 100644 --- a/OliverBooth/Pages/Projects/Project.cshtml +++ b/OliverBooth/Pages/Projects/Project.cshtml @@ -57,11 +57,15 @@ break; case ProjectStatus.Past: - Completed / Retired + Completed break; case ProjectStatus.Hiatus: - On Hiatus + On Hiatus + break; + + case ProjectStatus.Retired: + Retired break; }