diff --git a/TASVideos/Extensions/EntityExtensions.cs b/TASVideos/Extensions/EntityExtensions.cs index 3e7dfb68b..71d6b701e 100644 --- a/TASVideos/Extensions/EntityExtensions.cs +++ b/TASVideos/Extensions/EntityExtensions.cs @@ -368,7 +368,7 @@ public static List WithAnyEntry(this IEnumerable Game = s.GameVersion != null && !string.IsNullOrWhiteSpace(s.GameVersion.TitleOverride) ? s.GameVersion.TitleOverride : s.Game != null ? s.Game.DisplayName : s.GameName, Frames = s.Frames, FrameRate = s.SystemFrameRateId != null ? s.SystemFrameRate!.FrameRate : 60, - Branch = s.Branch, + Goal = s.GameGoal != null ? s.GameGoal.DisplayName : s.Branch, By = s.SubmissionAuthors.OrderBy(sa => sa.Ordinal).Select(sa => sa.Author!.UserName).ToList(), AdditionalAuthors = s.AdditionalAuthors, Date = s.CreateTimestamp, @@ -553,7 +553,7 @@ public static List WithAnyEntry(this IEnumerable SystemFrameRateId = s.SystemFrameRateId, Status = s.Status, EmulatorVersion = s.EmulatorVersion, - Branch = s.Branch, + Goal = s.GameGoal != null ? s.GameGoal.DisplayName : s.Branch, GameGoalId = s.GameGoalId }); } diff --git a/TASVideos/Pages/Submissions/Index.cshtml b/TASVideos/Pages/Submissions/Index.cshtml index 5d174e493..b531f56ae 100644 --- a/TASVideos/Pages/Submissions/Index.cshtml +++ b/TASVideos/Pages/Submissions/Index.cshtml @@ -52,7 +52,7 @@ @item.System @item.Game - @item.Branch + @(item.Goal == "baseline" ? "" : item.Goal) @(item.Time.ToStringWithOptionalDaysAndHours()) diff --git a/TASVideos/Pages/Submissions/Index.cshtml.cs b/TASVideos/Pages/Submissions/Index.cshtml.cs index 2af91c38c..5625797db 100644 --- a/TASVideos/Pages/Submissions/Index.cshtml.cs +++ b/TASVideos/Pages/Submissions/Index.cshtml.cs @@ -55,7 +55,7 @@ public class SubmissionEntry : ITimeable, ISubmissionDisplay public string? Game { get; init; } [Sortable] - public string? Branch { get; init; } + public string? Goal { get; init; } public TimeSpan Time => this.Time(); public List? By { get; init; } diff --git a/TASVideos/Pages/Submissions/Publish.cshtml b/TASVideos/Pages/Submissions/Publish.cshtml index b74caa88f..ed16d24ce 100644 --- a/TASVideos/Pages/Submissions/Publish.cshtml +++ b/TASVideos/Pages/Submissions/Publish.cshtml @@ -41,8 +41,8 @@ - - @Model.Submission.Branch + + @Model.Submission.Goal diff --git a/TASVideos/Pages/Submissions/Publish.cshtml.cs b/TASVideos/Pages/Submissions/Publish.cshtml.cs index e138dd297..be52a809c 100644 --- a/TASVideos/Pages/Submissions/Publish.cshtml.cs +++ b/TASVideos/Pages/Submissions/Publish.cshtml.cs @@ -276,7 +276,7 @@ public class SubmissionPublishModel public SubmissionStatus Status { get; init; } public int? GameGoalId { get; init; } public string? EmulatorVersion { get; init; } - public string? Branch { get; init; } + public string? Goal { get; init; } public bool CanPublish => SystemId > 0 && SystemFrameRateId.HasValue diff --git a/TASVideos/WikiModules/FrontPageSubmissionList.cshtml b/TASVideos/WikiModules/FrontPageSubmissionList.cshtml index eba2fdfb6..03c524d48 100644 --- a/TASVideos/WikiModules/FrontPageSubmissionList.cshtml +++ b/TASVideos/WikiModules/FrontPageSubmissionList.cshtml @@ -22,7 +22,7 @@
- @sub.Game "@sub.Branch" + @sub.Game "@sub.Goal"