56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
@model LOC.Core.Model.Account.Account
|
|
|
|
@{
|
|
ViewBag.Title = "Details";
|
|
}
|
|
|
|
<h2>Details</h2>
|
|
|
|
<fieldset>
|
|
<legend>Account | @Html.ActionLink("Edit", "Edit", new { id=Model.AccountId }) | @Html.ActionLink("Back to List", "Index")</legend>
|
|
|
|
<div style="color: darkgrey">
|
|
<div><div style="float: left"><b>Name:</b></div><div style="float: left; position:absolute; padding-left: 100px">@Model.Name</div></div>
|
|
<br />
|
|
<div><div style="float: left"><b>Status:</b></div><div style="float: left; position:absolute; padding-left: 100px">
|
|
@if (Model.Banned)
|
|
{
|
|
<span style="color: red">Banned</span>
|
|
}
|
|
else
|
|
{
|
|
<span style="color: green">In Good Standing</span>
|
|
}
|
|
</div>
|
|
</div>
|
|
<br />
|
|
<div><div style="float: left"><b>Rank:</b></div><div style="float: left; position:absolute; padding-left: 100px">@(Model.Rank == null ? "None" : Model.Rank.Name)</div></div>
|
|
<div>
|
|
@if (Model.Rank != null && (Model.Rank.Name == "Member" || Model.Rank.Name == "EliteMember"))
|
|
{
|
|
<br />
|
|
<div style="float: left"><b>Rank Expires:</b></div>
|
|
<div style="float: left; position:absolute; padding-left: 100px">@(DateTime.FromFileTimeUtc(Model.Expires))</div>
|
|
}
|
|
</div>
|
|
<br />
|
|
<div><div style="float: left"><b>IpIpAddresses:</b></div>
|
|
@if (Model.IpAddresses != null && Model.IpAddresses.Count > 0)
|
|
{
|
|
foreach (var ipAddress in Model.IpAddresses)
|
|
{
|
|
<br />
|
|
<div style="padding-left: 10px">@ipAddress.Address</div>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<div style="float: left; position:absolute; padding-left: 100px">None</div>
|
|
}
|
|
</div>
|
|
|
|
</div>
|
|
</fieldset>
|
|
|
|
|