From 3585849d4db6a3f3ab5a871f669faa1da5549d96 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 7 Sep 2024 10:28:07 -0500 Subject: [PATCH] Submissions/View -> show additional sync notes --- TASVideos/Pages/Submissions/View.cshtml | 12 ++++++++++++ TASVideos/Pages/Submissions/View.cshtml.cs | 8 +++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/TASVideos/Pages/Submissions/View.cshtml b/TASVideos/Pages/Submissions/View.cshtml index c281661aa..416bee367 100644 --- a/TASVideos/Pages/Submissions/View.cshtml +++ b/TASVideos/Pages/Submissions/View.cshtml @@ -203,6 +203,18 @@ +
+ +
@Model.Submission.AdditionalSyncNotes
+			
+
+ Submitted by @Model.Submission.Submitter on diff --git a/TASVideos/Pages/Submissions/View.cshtml.cs b/TASVideos/Pages/Submissions/View.cshtml.cs index 414e5bbf7..ac4990f7f 100644 --- a/TASVideos/Pages/Submissions/View.cshtml.cs +++ b/TASVideos/Pages/Submissions/View.cshtml.cs @@ -65,7 +65,8 @@ public async Task OnGet() Annotations = s.Annotations, GameGoalId = s.GameGoalId, SyncedOn = s.SyncedOn, - SyncedBy = s.SyncedByUser != null ? s.SyncedByUser.UserName : null + SyncedBy = s.SyncedByUser != null ? s.SyncedByUser.UserName : null, + AdditionalSyncNotes = s.AdditionalSyncNotes }) .SingleOrDefaultAsync(); @@ -142,7 +143,8 @@ public class SubmissionDisplay : ISubmissionDisplay internal int? SystemFrameRateId { get; init; } public int? GameVersionId { get; init; } internal int? GameGoalId { get; init; } - public string? SyncedBy { get; set; } - public DateTime? SyncedOn { get; set; } + public string? SyncedBy { get; init; } + public DateTime? SyncedOn { get; init; } + public string? AdditionalSyncNotes { get; init; } } }