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

@if (ban.AttachedPenalty is not null) {
@ban.AttachedPenalty.Offense.CapClientName(30)
@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.Offense.CapClientName(30)
@associatedEntity.DateTime.ToStandardFormat()
@ViewBag.Localization["WEBFRONT_BAN_MGMT_ACTION_UNBAN"]
}
}