From e89bddb4e042ec27f63a42482c6fd0dd8fde399f Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 25 Aug 2024 12:15:48 -0500 Subject: [PATCH] Games/Versions/View - show sourceDb and notes fields --- TASVideos/Pages/Games/Versions/View.cshtml | 10 ++++++++++ TASVideos/Pages/Games/Versions/View.cshtml.cs | 8 ++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/TASVideos/Pages/Games/Versions/View.cshtml b/TASVideos/Pages/Games/Versions/View.cshtml index ebf6eb0c9..4849c3ba0 100644 --- a/TASVideos/Pages/Games/Versions/View.cshtml +++ b/TASVideos/Pages/Games/Versions/View.cshtml @@ -47,6 +47,10 @@ +
+ + +
@@ -69,6 +73,12 @@ + + +

Notes

+ @Model.Version.Notes +
+
diff --git a/TASVideos/Pages/Games/Versions/View.cshtml.cs b/TASVideos/Pages/Games/Versions/View.cshtml.cs index ccca318aa..2663588c1 100644 --- a/TASVideos/Pages/Games/Versions/View.cshtml.cs +++ b/TASVideos/Pages/Games/Versions/View.cshtml.cs @@ -41,7 +41,9 @@ public async Task OnGet() v.Version, v.Region, v.Type, - v.TitleOverride)) + v.TitleOverride, + v.SourceDb, + v.Notes)) .SingleOrDefaultAsync(); if (version is null) @@ -73,7 +75,9 @@ public record VersionDisplay( string? Version, string? Region, VersionTypes Type, - string? TitleOverride); + string? TitleOverride, + string? SourceDb, + string? Notes); public record Entry(int Id, string Title); }