mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Manage users moderation from admin
--HG-- branch : dev
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<UsersIndexViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Users.Models" %>
|
||||
<%@ Import Namespace="Orchard.Users.ViewModels"%>
|
||||
<h1><%: Html.TitleForPage(T("Manage Users").ToString()) %></h1>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
@@ -22,6 +23,12 @@
|
||||
{ %>
|
||||
<tr>
|
||||
<td>
|
||||
<% if(row.UserPart.RegistrationStatus == UserStatus.Approved) { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Users/Content/Admin/images/online.gif") %>" alt="<%:T("Approved") %>" title="<%:T("User is approved") %>" />
|
||||
<% }
|
||||
else { %>
|
||||
<img class="icon" src="<%=ResolveUrl("~/Modules/Orchard.Users/Content/Admin/images/offline.gif") %>" alt="<%:T("Moderated") %>" title="<%:T("User is moderated") %>" />
|
||||
<% } %>
|
||||
<%: row.UserPart.UserName %>
|
||||
</td>
|
||||
<td>
|
||||
@@ -29,7 +36,8 @@
|
||||
</td>
|
||||
<td>
|
||||
<%: Html.ActionLink(T("Edit").ToString(), "Edit", new { row.UserPart.Id })%> |
|
||||
<%: Html.ActionLink(T("Remove").ToString(), "Delete", new { row.UserPart.Id })%>
|
||||
<%: Html.ActionLink(T("Remove").ToString(), "Delete", new { row.UserPart.Id })%> |
|
||||
<%: row.UserPart.RegistrationStatus == UserStatus.Pending ? Html.ActionLink(T("Approve").ToString(), "Approve", new { row.UserPart.Id }) : Html.ActionLink(T("Moderate").ToString(), "Moderate", new { row.UserPart.Id })%>
|
||||
</td>
|
||||
</tr>
|
||||
<%}%>
|
||||
|
Reference in New Issue
Block a user