web front design tweaks and favicon added

This commit is contained in:
RaidMax
2018-02-22 00:06:21 -06:00
parent aab891d14b
commit 20994f693c
23 changed files with 204 additions and 63 deletions

View File

@ -6,14 +6,22 @@
}
<div class="col-12 col-md-8 d-none d-md-block">
@{
for (int i = 0; i < half && i < Model.ChatHistory.Count; i++)
for (int i = 0; i < Model.ChatHistory.Length; i++)
{
string message = "&ndash; " + @Model.ChatHistory[i].Message;
if (Model.ChatHistory[i].Message == "CONNECTED")
message = "<span class='oi oi-account-login text-success'></span>";
else if (Model.ChatHistory[i].Message == "DISCONNECTED")
message = "<span class='oi oi-account-logout text-danger'></span>";
<span>@Html.ActionLink(Model.Players[i].Name, "ProfileAsync", "Client", new { id = Model.Players[i].ClientId }, new { @class = "text-muted" }) @Html.Raw(@message)</span><br/>
{
<span class="text-light"><span class="oi oi-account-login mr-2 text-success"> </span>@Model.ChatHistory[i].Name</span><br />
}
if (Model.ChatHistory[i].Message == "DISCONNECTED")
{
<span class="text-light"><span class="oi oi-account-logout mr-2 text-danger"> </span>@Model.ChatHistory[i].Name</span><br />
}
if (Model.ChatHistory[i].Message != "CONNECTED" && Model.ChatHistory[i].Message != "DISCONNECTED")
{
<span class="text-light">@Model.ChatHistory[i].Name</span><span> @Html.Raw(@message) </span><br />
}
}
}
</div>