Skip to content

Commit

Permalink
Submissions/View -> show additional sync notes
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Sep 7, 2024
1 parent af50d13 commit 3585849
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 12 additions & 0 deletions TASVideos/Pages/Submissions/View.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,18 @@
</pre>
</div>

<div condition="!string.IsNullOrWhiteSpace(Model.Submission.AdditionalSyncNotes)" class="sub-info-cell mb-2">
<label>
<a class="collapsed text-body" data-bs-toggle="collapse" href="#collapse-content-annotations">
<i class="fa fa-chevron-circle-down"></i> Sync Notes
</a>
</label>
<pre id="collapse-content-annotations"
class="collapse"
style="white-space: pre-wrap">@Model.Submission.AdditionalSyncNotes
</pre>
</div>

<small>
Submitted by @Model.Submission.Submitter on <timezone-convert asp-for="@Model.Submission.Date" relative-time="false" />
</small>
Expand Down
8 changes: 5 additions & 3 deletions TASVideos/Pages/Submissions/View.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public async Task<IActionResult> 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();

Expand Down Expand Up @@ -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; }
}
}

0 comments on commit 3585849

Please sign in to comment.