2019-02-16 18:18:50 -05:00
|
|
|
@model IEnumerable<IW4MAdmin.Plugins.Stats.Models.EFACSnapshot>
|
2018-06-05 17:31:36 -04:00
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
|
|
|
|
2018-06-07 22:19:12 -04:00
|
|
|
<div class="penalty-info-context bg-dark p-2 mt-2 mb-2 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-->
|
2019-02-15 23:19:59 -05:00
|
|
|
var snapProperties = Model.First().GetType().GetProperties();
|
2018-06-05 17:31:36 -04:00
|
|
|
foreach (var prop in snapProperties)
|
|
|
|
{
|
2019-09-27 16:53:52 -04:00
|
|
|
@if (prop.Name.EndsWith("Id") || 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
|
|
|
|
|
|
|
<span class="text-white">@prop.Name </span> <span>— @prop.GetValue(snapshot)</span><br />
|
2018-06-05 17:31:36 -04:00
|
|
|
}
|
|
|
|
<div class="w-100 mt-1 mb-1 border-bottom"></div>
|
|
|
|
}
|
|
|
|
</div>
|