mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 12:29:04 +08:00
Improving e-mail templates and settings for users registration
--HG-- branch : dev
This commit is contained in:
@@ -22,11 +22,11 @@
|
||||
@foreach (var row in Model.Rows) {
|
||||
<tr>
|
||||
<td>
|
||||
@if(row.UserPart.RegistrationStatus == UserStatus.Approved) {
|
||||
@if(row.UserPart.RegistrationStatus == UserStatus.Approved && row.UserPart.EmailStatus == UserStatus.Approved) {
|
||||
<img class="icon" src="@Href("~/Modules/Orchard.Users/Content/Admin/images/online.gif") " alt="@T("Approved") " title="@T("User is approved") " />
|
||||
}
|
||||
else {
|
||||
<img class="icon" src="@Href("~/Modules/Orchard.Users/Content/Admin/images/offline.gif") " alt="@T("Moderated") " title="@T("User is moderated") " />
|
||||
<img class="icon" src="@Href("~/Modules/Orchard.Users/Content/Admin/images/offline.gif") " alt="@T("Moderated") " title="@if(row.UserPart.EmailStatus == UserStatus.Approved) { @T("User is moderated") } else { @T("E-mail validation is pending") }" />
|
||||
}
|
||||
@Html.ActionLink(row.UserPart.UserName, "Edit", new { row.UserPart.Id })
|
||||
</td>
|
||||
@@ -42,7 +42,7 @@
|
||||
@Html.ActionLink(T("Disable").ToString(), "Moderate", new { row.UserPart.Id })
|
||||
}
|
||||
@if ( row.UserPart.EmailStatus == UserStatus.Pending ) { <text>|</text>
|
||||
@Html.ActionLink(T("Challenge Email").ToString(), "SendChallengeEmail", new { row.UserPart.Id })
|
||||
@Html.ActionLink(T("Send challenge E-mail").ToString(), "SendChallengeEmail", new { row.UserPart.Id })
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user