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)
|
|
|
|
{
|
|
|
|
<!-- this is another ugly hack-->
|
|
|
|
@if (prop.GetValue(snapshot) is System.Collections.Generic.HashSet<SharedLibraryCore.Helpers.Vector3>)
|
|
|
|
{
|
2019-09-09 18:40:04 -04:00
|
|
|
@*<span class="text-white">@prop.Name </span>
|
2018-06-05 17:31:36 -04:00
|
|
|
foreach (var v in (System.Collections.Generic.HashSet<SharedLibraryCore.Helpers.Vector3>)prop.GetValue(snapshot))
|
|
|
|
{
|
|
|
|
<span>@v.ToString(),</span><br />
|
2019-09-09 18:40:04 -04:00
|
|
|
}*@
|
2018-06-05 17:31:36 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<span class="text-white">@prop.Name </span> <span>— @prop.GetValue(snapshot)</span><br />
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<div class="w-100 mt-1 mb-1 border-bottom"></div>
|
|
|
|
}
|
|
|
|
</div>
|