mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-07-06 20:09:11 -05:00
Additional zombie stast work
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
}
|
||||
</td>
|
||||
<td colspan="20%" class="text-break">
|
||||
<color-code value="@(message.ServerName ?? "--")"></color-code>
|
||||
<color-code value="@(message.ServerName ?? "-")"></color-code>
|
||||
</td>
|
||||
<td colspan="15%" class="text-right text-break">
|
||||
@message.When.ToStandardFormat()
|
||||
@ -51,7 +51,7 @@
|
||||
}
|
||||
</div>
|
||||
<div>
|
||||
<color-code value="@(message.ServerName ?? "--")"></color-code>
|
||||
<color-code value="@(message.ServerName ?? "-")"></color-code>
|
||||
</div>
|
||||
<div>@message.When.ToStandardFormat()</div>
|
||||
</td>
|
||||
|
@ -31,9 +31,15 @@
|
||||
}
|
||||
var rebuiltName = stat.RebuildWeaponName();
|
||||
var name = config.GetStringForGame(rebuiltName, stat.Weapon?.Game);
|
||||
return !rebuiltName.Equals(name, StringComparison.InvariantCultureIgnoreCase)
|
||||
? name
|
||||
: config.GetStringForGame(stat.Weapon.Name, stat.Weapon.Game);
|
||||
|
||||
if (!rebuiltName.Equals(name))
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
rebuiltName = config.GetStringForGame(stat.Weapon?.Name, stat.Weapon.Game);
|
||||
|
||||
return rebuiltName.Equals(name) ? name.Transform(To.TitleCase) : rebuiltName;
|
||||
}
|
||||
|
||||
string GetWeaponAttachmentName(EFWeaponAttachmentCombo attachment)
|
||||
@ -230,7 +236,11 @@
|
||||
Name = ViewBag.Localization["WEBFRONT_ADV_STATS_TOTAL_ACTIVE_TIME"] as string,
|
||||
Value = activeTime?.HumanizeForCurrentCulture()
|
||||
}
|
||||
};
|
||||
}.Concat(Model.CustomMetrics.Select(metric => new
|
||||
{
|
||||
Name = metric.Key,
|
||||
metric.Value
|
||||
}));
|
||||
}
|
||||
|
||||
<div class="content row mt-20">
|
||||
@ -362,7 +372,7 @@
|
||||
}).WithRows(weapons, weapon => new[]
|
||||
{
|
||||
GetWeaponNameForHit(weapon),
|
||||
GetWeaponAttachmentName(weapon.WeaponAttachmentCombo) ?? "--",
|
||||
GetWeaponAttachmentName(weapon.WeaponAttachmentCombo) ?? "-",
|
||||
weapon.KillCount.ToNumericalString(),
|
||||
weapon.HitCount.ToNumericalString(),
|
||||
weapon.DamageInflicted.ToNumericalString(),
|
||||
|
@ -67,21 +67,13 @@
|
||||
</div>
|
||||
|
||||
<div class="d-flex flex-column font-size-12 text-right text-md-left">
|
||||
<div>
|
||||
<span class="text-primary">@stat.Kills.ToNumericalString()</span><span class="text-muted"> @loc["PLUGINS_STATS_TEXT_KILLS"]</span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="text-primary">@stat.Deaths.ToNumericalString()</span><span class="text-muted"> @loc["PLUGINS_STATS_TEXT_DEATHS"]</span><br/>
|
||||
</div>
|
||||
<div>
|
||||
<span class="text-primary">@stat.KDR</span><span class="text-muted"> @loc["PLUGINS_STATS_TEXT_KDR"]</span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="text-primary">@stat.TimePlayedValue.HumanizeForCurrentCulture() </span><span class="text-muted">@loc["WEBFRONT_PROFILE_PLAYER"]</span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="text-primary"> @stat.LastSeenValue.HumanizeForCurrentCulture() </span><span class="text-muted">@loc["WEBFRONT_PROFILE_LSEEN"]</span>
|
||||
</div>
|
||||
@foreach (var meta in stat.Metrics)
|
||||
{
|
||||
<div>
|
||||
<span class="text-primary">@meta.Value</span>
|
||||
<span class="text-muted">@meta.Key</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full w-md-half client-rating-graph pt-10 pb-10">
|
||||
|
@ -69,7 +69,7 @@ else
|
||||
<td>@(client.Deaths ?? 0)</td>
|
||||
<td>@Math.Round(client.Kdr ?? 0, 2)</td>
|
||||
<td>@Math.Round(client.ScorePerMinute ?? 0)</td>
|
||||
<td>@(client.ZScore is null or 0 ? "--" : Math.Round(client.ZScore.Value, 2).ToString(CultureInfo.CurrentCulture))</td>
|
||||
<td>@(client.ZScore is null or 0 ? "-" : Math.Round(client.ZScore.Value, 2).ToString(CultureInfo.CurrentCulture))</td>
|
||||
<td class="text-right">@client.Ping</td>
|
||||
</tr>
|
||||
|
||||
@ -94,7 +94,7 @@ else
|
||||
<div>@(client.Deaths ?? 0)</div>
|
||||
<div>@Math.Round(client.Kdr ?? 0, 2)</div>
|
||||
<div>@Math.Round(client.ScorePerMinute ?? 0)</div>
|
||||
<div>@(client.ZScore is null or 0 ? "--" : Math.Round(client.ZScore.Value, 2).ToString(CultureInfo.CurrentCulture))</div>
|
||||
<div>@(client.ZScore is null or 0 ? "-" : Math.Round(client.ZScore.Value, 2).ToString(CultureInfo.CurrentCulture))</div>
|
||||
<div>@client.Ping</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user