@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()
Unban
} else {
Link-Only Ban
}
@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()
Unban
}
}