|
@model sBlog.Net.Areas.Admin.Models.AdminAuthorsViewModel
@{
ViewBag.Title = string.Format("User Management || {0}", Model.Title);
}
<style type="text/css">
#imgLoading {
display: none;
vertical-align: text-bottom
}
</style>
@if (User.IsInRole("SuperAdmin") || User.IsInRole("Admin"))
{
@Html.RouteLink("Manage Public Posts", "AdminPostManagement") @:|
@Html.RouteLink("Manage Comments", "AdminCommentManagement")
}
@if (User.IsInRole("SuperAdmin"))
{
@:|
<span class="addPost">
<img src="@Url.Content("~/Content/Images/profile.png")" alt="" style="width: 16px; height: 16px;" />
@Html.ActionLink("Create a new blog author", "add", "account", new {Area = ""}, new {})
</span>
}
<table id="manage-table">
<thead>
<tr>
<th class="header" scope="col">Author Name</th>
<th class="header" scope="col">Author User Name</th>
<th class="header" scope="col">Number of Posts</th>
<th class="header" scope="col">
User Status
<img src="@Url.Content("~/Content/Images/loader-transparent.gif")" alt="updating..." id="imgLoading"/>
</th>
<th class="header" scope="col">Last Login Date</th>
</tr>
</thead>
<tbody>
@Html.Partial("ItemInfo", Model.AuthorsCount)
@foreach(var author in Model.Authors)
{
@Html.Partial("AuthorDetail", author)
}
</tbody>
<tfoot>
<tr>
<th class="header" scope="col">Author Name</th>
<th class="header" scope="col">Author User Name</th>
<th class="header" scope="col">Number of Posts</th>
<th class="header" scope="col">User Status</th>
<th class="header" scope="col">Last Login Date</th>
</tr>
</tfoot>
</table>
@Html.PageLinks(Model.PagingInfo, x => Url.Action("UserManagement", new { page = x }))
@Html.HiddenFor(model => Model.OneTimeCode)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Just another passionate software developer!
Some of the contributions to the open source world - a blog engine written in MVC 4 - sBlog.Net. Check it out
here. For the codeproject article regarding sBlog.Net click
here!
(Figuring out this section!)