@{ 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-{Model.PunisherLevel.ToString().ToLower()}" : "text-light-dm text-dark-lm"; var offenderLevelClass = canSeeLevel ? $"level-color-{Model.OffenderLevel.ToString().ToLower()}" : "text-light-dm text-dark-lm"; } @using WebfrontCore.Permissions @model SharedLibraryCore.Dtos.PenaltyInfo @ViewBag.Localization[$"WEBFRONT_PENALTY_{Model.PenaltyType.ToString().ToUpper()}"] @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"]
@ViewBag.Localization[$"WEBFRONT_PENALTY_{Model.PenaltyType.ToString().ToUpper()}"]
@if (Model.Expired) { @Model.TimePunishedString } else { @Model.TimeRemaining }