2021-05-18 23:23:39 +02:00
|
|
|
@using WotBlitzStatisticsPro.Blazor.Helpers
|
|
|
|
|
@inject IStringLocalizer<App> Localize
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row">
|
|
|
|
|
@Player.Nickname
|
|
|
|
|
@if (Player.ClanTag != null)
|
|
|
|
|
{
|
|
|
|
|
<span style="color: @Constants.ClanTagColor;"> [<span style="font-weight: bolder;">@Player.ClanTag</span>]</span>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
2021-05-19 15:04:55 +02:00
|
|
|
<div class="row" title="@Localize["Win rate"]">
|
2021-05-18 23:23:39 +02:00
|
|
|
<span style="font-size: 12px; color: @Player.WinRate.ScaleColor()"> <RadzenIcon Icon="flag" Style="height: 15px;" /> @Player.WinRate%</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" title="@Localize["Battles"]">
|
|
|
|
|
<span style="font-size: 12px"><RadzenIcon Icon="videogame_asset" /> @Player.BattlesCount</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row" title="@Localize["Last battle"]">
|
|
|
|
|
<span style="font-size: 12px"><RadzenIcon Icon="schedule" /> @Player.LastBattle.SinceTime(Localize)</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr>
|
2021-05-16 22:43:49 +02:00
|
|
|
|
|
|
|
|
@code {
|
|
|
|
|
[Parameter]
|
2021-06-04 15:35:53 +02:00
|
|
|
public IPlayerShortInfo Player { get; set; }
|
2021-05-16 22:43:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|