@using Blazored.LocalStorage @inject IGameDataService GameDataService @inject HttpClient Client @inject AuthService AuthService @inject IJSRuntime JsRuntime @inject NavigationManager NavigationManager @inject ILocalStorageService LocalStorage @page "/Users/{baid:int}/PlayHistory" @Localizer["Play History"] @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["Difficulty"] @Localizer["Level"] @Localizer["Song Name"] @Localizer["Genre"] @Localizer["Score"] @Localizer["Crown"] @Localizer["Rank"] @Localizer["Good"] @Localizer["OK"] @Localizer["Bad"] @Localizer["Drumroll"] @Localizer["MAX Combo"] @* Difficulty rating *@ @* Star rating *@ @songHistoryData.Stars @* Song title *@ @songHistoryData.MusicName @songHistoryData.MusicArtist @* Genre display *@ @GetGenreTitle(songHistoryData.Genre) @(songHistoryData.Score) @if (songHistoryData.ScoreRank is not ScoreRank.None) { } @(songHistoryData.GoodCount) @(songHistoryData.OkCount) @(songHistoryData.MissCount) @(songHistoryData.DrumrollCount) @(songHistoryData.ComboCount) } }