@using TaikoWebUI.Utilities; @Localizer["Play History"] @if (Items.Count > 0) { @Localizer["Play Time"] @Localizer["Difficulty"] @Localizer["Crown"] @Localizer["Rank"] @Localizer["Score"] @Localizer["Good"] @Localizer["OK"] @Localizer["Bad"] @Localizer["Drumroll"] @Localizer["MAX Combo"] @context.PlayTime.ToString(Localizer["DateFormat"]) @context.Difficulty @(ScoreUtils.GetCrownText(context.Crown)) @if (context.ScoreRank is not ScoreRank.None) { @(ScoreUtils.GetRankText(context.ScoreRank)) } @context.Score @context.GoodCount @context.OkCount @context.MissCount @context.DrumrollCount @context.ComboCount } else { @Localizer["No Play History Found"] } @code { [Parameter] public List Items { get; set; } = new(); private string GetActiveRowClass(SongHistoryData songHistory, int index) { return Items!.MaxBy(x => x.Score)!.Score == songHistory.Score ? "is-current-user" : ""; } }