2021-03-22 12:09:25 -04:00
|
|
|
@model IEnumerable<Data.Models.Client.Stats.EFACSnapshot>
|
2018-06-05 17:31:36 -04:00
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
|
|
|
|
2022-04-19 19:43:58 -04:00
|
|
|
<div class="penalty-info-context bg-dark-dm bg-light-lm p-20 mt-5 mb-5 rounded-top rounded-bottom border-top border-bottom">
|
2018-06-05 17:31:36 -04:00
|
|
|
@foreach (var snapshot in Model)
|
|
|
|
{
|
|
|
|
<!-- this is not ideal, but I didn't want to manually write out all the properties-->
|
2021-06-29 16:02:01 -04:00
|
|
|
var snapProperties = Model.First().GetType().GetProperties().OrderBy(prop => prop.Name);
|
2018-06-05 17:31:36 -04:00
|
|
|
foreach (var prop in snapProperties)
|
|
|
|
{
|
2021-06-29 16:02:01 -04:00
|
|
|
@if ((prop.Name.EndsWith("Id") && prop.Name != "WeaponId" || prop.Name == "Server") || new[] {"Active", "Client", "PredictedViewAngles"}.Contains(prop.Name))
|
2018-06-05 17:31:36 -04:00
|
|
|
{
|
2019-09-27 16:53:52 -04:00
|
|
|
continue;
|
2018-06-05 17:31:36 -04:00
|
|
|
}
|
2019-09-27 16:53:52 -04:00
|
|
|
|
2022-04-19 19:43:58 -04:00
|
|
|
<span class="text-light-dm text-dark-lm">@prop.Name </span>
|
2021-06-29 16:02:01 -04:00
|
|
|
<span>— @prop.GetValue(snapshot)?.ToString()?.StripColors()</span><br/>
|
2018-06-05 17:31:36 -04:00
|
|
|
}
|
2022-04-19 19:43:58 -04:00
|
|
|
<hr class="mt-10 mb-10"/>
|
2018-06-05 17:31:36 -04:00
|
|
|
}
|
2022-04-19 19:43:58 -04:00
|
|
|
</div>
|