@using Blazored.LocalStorage @inject IGameDataService GameDataService @inject HttpClient Client @inject AuthService AuthService @inject IJSRuntime JsRuntime @inject NavigationManager NavigationManager @inject ILocalStorageService LocalStorage @inject BreadcrumbsStateContainer BreadcrumbsStateContainer @page "/Users/{baid:int}/PlayHistory" @if (response is null) { } else { @if (AuthService.LoginRequired && (!AuthService.IsLoggedIn || (AuthService.GetLoggedInBaid() != Baid && !AuthService.IsAdmin))) { if (!AuthService.IsLoggedIn) { NavigationManager.NavigateTo("/Login"); } else { NavigationManager.NavigateTo("/"); } } else { @Localizer["Total Credits Played"]: @songHistoryDataMap.Values.Count @Localizer["Play Time"]
@CultureInfo.CurrentCulture.TextInfo.ToTitleCase(context[0].PlayTime.ToString(Localizer["DateFormat"]))
@Localizer["Song Title / Artist"] @Localizer["Genre"] @Localizer["Difficulty"] @Localizer["Level"] @Localizer["Score"] @Localizer["Crown"] @Localizer["Rank"] @Localizer["Good"] @Localizer["OK"] @Localizer["Bad"] @Localizer["Drumroll"] @Localizer["MAX Combo"] @* Song title *@ @* Genre display *@ @GetGenreTitle(songHistoryData.Genre) @* Difficulty rating *@ @* Star rating *@ @songHistoryData.Stars @(songHistoryData.Score) @(GetCrownText(songHistoryData.Crown)) @if (songHistoryData.ScoreRank is not ScoreRank.None) { @(GetRankText(songHistoryData.ScoreRank)) } @(songHistoryData.GoodCount) @(songHistoryData.OkCount) @(songHistoryData.MissCount) @(songHistoryData.DrumrollCount) @(songHistoryData.ComboCount)
} }