fix edge case for temp mute penalties with no expiration
This commit is contained in:
parent
12e3fd9238
commit
8fc47ec6c4
@ -47,9 +47,12 @@
|
|||||||
<span class="text-light-dm font-weight-lighter">@(ViewBag.Authorized ? !string.IsNullOrEmpty(Model.ActivePenalty.AutomatedOffense) && Model.ActivePenalty.Type != EFPenalty.PenaltyType.Warning ? Utilities.FormatExt(ViewBag.Localization["WEBFRONT_PROFILE_ANTICHEAT_DETECTION"], Model.ActivePenalty.AutomatedOffense) : Model.ActivePenalty.Offense.StripColors() : Model.ActivePenalty.Offense.StripColors())</span>
|
<span class="text-light-dm font-weight-lighter">@(ViewBag.Authorized ? !string.IsNullOrEmpty(Model.ActivePenalty.AutomatedOffense) && Model.ActivePenalty.Type != EFPenalty.PenaltyType.Warning ? Utilities.FormatExt(ViewBag.Localization["WEBFRONT_PROFILE_ANTICHEAT_DETECTION"], Model.ActivePenalty.AutomatedOffense) : Model.ActivePenalty.Offense.StripColors() : Model.ActivePenalty.Offense.StripColors())</span>
|
||||||
break;
|
break;
|
||||||
case "time":
|
case "time":
|
||||||
<span class="text-light-dm font-weight-lighter">
|
if (Model.ActivePenalty.Expires.HasValue)
|
||||||
@((Model.ActivePenalty.Expires.Value - DateTime.UtcNow).HumanizeForCurrentCulture())
|
{
|
||||||
</span>
|
<span class="text-light-dm font-weight-lighter">
|
||||||
|
@((Model.ActivePenalty.Expires.Value - DateTime.UtcNow).HumanizeForCurrentCulture())
|
||||||
|
</span>
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
<span>@result.MatchValue</span>
|
<span>@result.MatchValue</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user