Skip to content

Commit

Permalink
games/versions/list - show sourceDb field
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Aug 25, 2024
1 parent deca44d commit d8ae3e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 10 additions & 2 deletions TASVideos/Pages/Games/Versions/List.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@
@foreach (var version in Model.Versions.OrderBy(v => v.Name))
{
<tr>
<td>@version.Type</td>
<td>@version.Name</td>
<td>
@version.Type
</td>
<td>
@version.Name
@if (!string.IsNullOrWhiteSpace(version.SourceDb))
{
<br /><span>SourceDB: @version.SourceDb</span>
}
</td>
<td>@version.TitleOverride</td>
<td>@version.Version</td>
<td>@version.Region</td>
Expand Down
6 changes: 4 additions & 2 deletions TASVideos/Pages/Games/Versions/List.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public async Task<IActionResult> OnGet()
v.Region,
v.Type,
v.System!.Code,
v.TitleOverride))
v.TitleOverride,
v.SourceDb))
.ToListAsync();
return Page();
}
Expand All @@ -49,5 +50,6 @@ public record VersionEntry(
string? Region,
VersionTypes Type,
string System,
string? TitleOverride);
string? TitleOverride,
string? SourceDb);
}

0 comments on commit d8ae3e0

Please sign in to comment.