mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
set team properly/tint scoreboard background for team
This commit is contained in:
@ -101,7 +101,8 @@ namespace WebfrontCore.Controllers
|
||||
Deaths = clientData.stats?.MatchData?.Deaths,
|
||||
ScorePerMinute = clientData.stats?.SessionSPM,
|
||||
Kdr = clientData.stats?.MatchData?.Kdr,
|
||||
ZScore = clientData.stats?.ZScore
|
||||
ZScore = clientData.stats?.ZScore,
|
||||
Team = clientData.client.Team
|
||||
})
|
||||
.ToList()
|
||||
}).ToList();
|
||||
|
@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using SharedLibraryCore.Database.Models;
|
||||
|
||||
namespace WebfrontCore.ViewModels
|
||||
{
|
||||
@ -24,5 +25,6 @@ namespace WebfrontCore.ViewModels
|
||||
public double? ScorePerMinute { get; set; }
|
||||
public double? Kdr { get; set; }
|
||||
public double? ZScore { get; set; }
|
||||
public EFClient.TeamType Team { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@
|
||||
</tr>
|
||||
@foreach (var client in Model.ShouldOrderDescending ? Model.ClientInfo.OrderByDescending(OrderByFunc) : Model.ClientInfo.OrderBy(OrderByFunc))
|
||||
{
|
||||
<tr>
|
||||
<tr class="team-@client.Team.ToString().ToLower()-bg">
|
||||
<td>
|
||||
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@client.ClientId">
|
||||
<color-code value="@client.ClientName"></color-code>
|
||||
|
@ -455,3 +455,11 @@ div.card {
|
||||
padding-right: 1rem !important;
|
||||
line-height: 1.45rem !important;
|
||||
}
|
||||
|
||||
.team-allies-bg {
|
||||
background-color: rgba(0, 0, 139, 0.1);
|
||||
}
|
||||
|
||||
.team-axis-bg {
|
||||
background-color: rgba(139, 0, 0, 0.1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user