@{ Layout = null; var loc = Utilities.CurrentLocalization.LocalizationIndex; var canSeeLevel = (ViewBag.PermissionsSet as IEnumerable).HasPermission(WebfrontEntity.ClientLevel, WebfrontPermission.Read) && Model.PunisherLevel != 0; var punisherLevelClass = canSeeLevel ? $"level-color-{(int)Model.PunisherLevel}" : "text-light-dm text-dark-lm"; } @using WebfrontCore.Permissions @model SharedLibraryCore.Dtos.PenaltyInfo @Model.PenaltyType @if (Model.Expired) { @Model.TimePunishedString } else { @Model.TimeRemaining }
@loc["WEBFRONT_PENALTY_TEMPLATE_NAME"]
@loc["WEBFRONT_PENALTY_TEMPLATE_TYPE"]
@loc["WEBFRONT_PENALTY_TEMPLATE_OFFENSE"]
@loc["WEBFRONT_PENALTY_TEMPLATE_ADMIN"]
@loc["WEBFRONT_PENALTY_TEMPLATE_TIME"]
@Model.PenaltyType
@if (Model.Expired) { @Model.TimePunishedString } else { @Model.TimeRemaining }