@model IEnumerable @foreach (var ban in Model) { if (ban.AttachedPenalty is null && !ban.AssociatedPenalties.Any()) { continue; }
@Utilities.MakeAbbreviation(ViewBag.Localization[$"GAME_{ban.Game}"])
@ban.NetworkId.ToString("X")
@ban.IPAddress.ConvertIPtoString()

@if (ban.AttachedPenalty is not null) {
@ban.AttachedPenalty.DateTime.ToStandardFormat()

@ViewBag.Localization["WEBFRONT_BAN_MGMT_ACTION_UNBAN"]
} else {
@ViewBag.Localization["WEBFRONT_BAN_MGMT_LINK_ONLY"]
}
@foreach (var associatedEntity in ban.AssociatedPenalties) {
@Utilities.MakeAbbreviation(ViewBag.Localization[$"GAME_{ban.Game}"])

@associatedEntity.OffenderInfo.NetworkId?.ToString("X")
@associatedEntity.OffenderInfo.IPAddress.ConvertIPtoString()

@associatedEntity.DateTime.ToStandardFormat()
@ViewBag.Localization["WEBFRONT_BAN_MGMT_ACTION_UNBAN"]
}
}