BuildFeed/Areas/admin/Views/users/index.cshtml
2014-10-31 19:28:16 +00:00

49 lines
1.3 KiB
Plaintext

@model IEnumerable<System.Web.Security.MembershipUser>
@{
ViewBag.Title = "User Administration | BuildFeed";
}
<h2>User Administration</h2>
<table class="table table-striped table-bordered table-admin">
<tr>
<th>
Username
</th>
<th>
Email Address
</th>
<td>
Last Login Time
</td>
<th style="width:108px;"></th>
</tr>
@foreach (MembershipUser mu in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => mu.UserName)
</td>
<td>
@Html.DisplayFor(modelItem => mu.Email)
</td>
<td>
@Html.DisplayFor(modelItem => mu.LastLoginDate)
</td>
<td class="text-right">
@if (mu.IsApproved)
{
@Html.ActionLink("Unapprove", "unapprove", new { id = mu.ProviderUserKey }, new { @class = "btn btn-danger", style = "width:90px;" })
}
else
{
@Html.ActionLink("Approve", "approve", new { id = mu.ProviderUserKey }, new { @class = "btn btn-success", style = "width:90px;" })
}
</td>
</tr>
}
</table>