@model SharedLibrary.Dtos.ServerInfo @{ Layout = null; int half = (int)Math.Ceiling(Model.ClientCount / 2.0); }
@{ for (int i = 0; i < Model.ChatHistory.Length; i++) { string message = "– " + @Model.ChatHistory[i].Message; if (Model.ChatHistory[i].Message == "CONNECTED") { @Model.ChatHistory[i].Name
} if (Model.ChatHistory[i].Message == "DISCONNECTED") { @Model.ChatHistory[i].Name
} if (Model.ChatHistory[i].Message != "CONNECTED" && Model.ChatHistory[i].Message != "DISCONNECTED") { @Model.ChatHistory[i].Name @Html.Raw(@message)
} } }
@{ for (int i = 0; i < half; i++) { @Html.ActionLink(Model.Players[i].Name, "ProfileAsync", "Client", new { id = Model.Players[i].ClientId })
} }
@{ for (int i = half; i < Model.ClientCount; i++) { @Html.ActionLink(Model.Players[i].Name, "ProfileAsync", "Client", new { id = Model.Players[i].ClientId })
} }