mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
71 lines
2.1 KiB
Plaintext
71 lines
2.1 KiB
Plaintext
@model IEnumerable<System.Web.Security.MembershipUser>
|
|
|
|
@{
|
|
ViewBag.Title = "User Administration | BuildFeed";
|
|
}
|
|
|
|
<h2>User Administration</h2>
|
|
|
|
<ul>
|
|
<li>@Html.ActionLink("View Administrators", "admins")</li>
|
|
<li>@Html.ActionLink("Return to Admin Panel", "index", "base")</li>
|
|
</ul>
|
|
|
|
<table class="table table-striped table-bordered table-admin">
|
|
<tr>
|
|
<th>
|
|
Username
|
|
</th>
|
|
<th>
|
|
Email Address
|
|
</th>
|
|
<td>
|
|
Last Login Time
|
|
</td>
|
|
<td>
|
|
Last Lockout Time
|
|
</td>
|
|
<th style="width:108px;"></th>
|
|
<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>
|
|
@Html.DisplayFor(modelItem => mu.LastLockoutDate)
|
|
</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>
|
|
<td class="text-right">
|
|
@if (!mu.IsLockedOut)
|
|
{
|
|
@Html.ActionLink("Lock", "lock", new { id = mu.ProviderUserKey }, new { @class = "btn btn-danger", style = "width:90px;" })
|
|
}
|
|
else
|
|
{
|
|
@Html.ActionLink("Unlock", "unlock", new { id = mu.ProviderUserKey }, new { @class = "btn btn-success", style = "width:90px;" })
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
|
|
</table>
|