Skip to content

Commit

Permalink
Games/Versions/View - show sourceDb and notes fields
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Aug 25, 2024
1 parent d8ae3e0 commit e89bddb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions TASVideos/Pages/Games/Versions/View.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
<label asp-for="Version.Md5"></label>
<label>@Model.Version.Md5</label>
</div>
<div class="info-entry">
<label asp-for="Version.SourceDb"></label>
<label>@Model.Version.SourceDb</label>
</div>
</column>
</row>
<row class="mt-2" condition="@Model.Publications.Any() || Model.Submissions.Any()">
Expand All @@ -69,6 +73,12 @@
</ul>
</column>
</row>
<row condition="!string.IsNullOrWhiteSpace(Model.Version.Notes)" class="mt-2">
<column sm="12">
<h4>Notes</h4>
@Model.Version.Notes
</column>
</row>
</card-body>
</card>

Expand Down
8 changes: 6 additions & 2 deletions TASVideos/Pages/Games/Versions/View.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public async Task<IActionResult> OnGet()
v.Version,
v.Region,
v.Type,
v.TitleOverride))
v.TitleOverride,
v.SourceDb,
v.Notes))
.SingleOrDefaultAsync();

if (version is null)
Expand Down Expand Up @@ -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);
}

0 comments on commit e89bddb

Please sign in to comment.