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":
|
||||||
|
if (Model.ActivePenalty.Expires.HasValue)
|
||||||
|
{
|
||||||
<span class="text-light-dm font-weight-lighter">
|
<span class="text-light-dm font-weight-lighter">
|
||||||
@((Model.ActivePenalty.Expires.Value - DateTime.UtcNow).HumanizeForCurrentCulture())
|
@((Model.ActivePenalty.Expires.Value - DateTime.UtcNow).HumanizeForCurrentCulture())
|
||||||
</span>
|
</span>
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
<span>@result.MatchValue</span>
|
<span>@result.MatchValue</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user