mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 13:22:08 +08:00
#6140 Added NotifyType.Success and replaced most usages of NotifyType.Information with it. Added appropriate styles in css files.
Some minor fixes - wrong notification types. Conflicts: src/Orchard.Web/Modules/Orchard.ImportExport/Controllers/AdminController.cs src/Orchard.Web/Modules/Orchard.Taxonomies/Controllers/TermAdminController.cs src/Orchard.Web/Modules/Orchard.Themes/Controllers/AdminController.cs
This commit is contained in:
@@ -210,7 +210,7 @@ namespace Orchard.Users.Controllers {
|
||||
return View(model);
|
||||
}
|
||||
|
||||
Services.Notifier.Information(T("User created"));
|
||||
Services.Notifier.Success(T("User created"));
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
@@ -268,7 +268,7 @@ namespace Orchard.Users.Controllers {
|
||||
|
||||
Services.ContentManager.Publish(user.ContentItem);
|
||||
|
||||
Services.Notifier.Information(T("User information updated"));
|
||||
Services.Notifier.Success(T("User information updated"));
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ namespace Orchard.Users.Controllers {
|
||||
}
|
||||
else{
|
||||
Services.ContentManager.Remove(user.ContentItem);
|
||||
Services.Notifier.Information(T("User {0} deleted", user.UserName));
|
||||
Services.Notifier.Success(T("User {0} deleted", user.UserName));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,10 +309,9 @@ namespace Orchard.Users.Controllers {
|
||||
}
|
||||
|
||||
_userService.SendChallengeEmail(user.As<UserPart>(), nonce => Url.MakeAbsolute(Url.Action("ChallengeEmail", "Account", new { Area = "Orchard.Users", nonce = nonce }), siteUrl));
|
||||
Services.Notifier.Information(T("Challenge email sent to {0}", user.UserName));
|
||||
Services.Notifier.Success(T("Challenge email sent to {0}", user.UserName));
|
||||
}
|
||||
|
||||
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
@@ -325,7 +324,7 @@ namespace Orchard.Users.Controllers {
|
||||
|
||||
if ( user != null ) {
|
||||
user.As<UserPart>().RegistrationStatus = UserStatus.Approved;
|
||||
Services.Notifier.Information(T("User {0} approved", user.UserName));
|
||||
Services.Notifier.Success(T("User {0} approved", user.UserName));
|
||||
_userEventHandlers.Approved(user);
|
||||
}
|
||||
|
||||
@@ -345,7 +344,7 @@ namespace Orchard.Users.Controllers {
|
||||
}
|
||||
else {
|
||||
user.As<UserPart>().RegistrationStatus = UserStatus.Pending;
|
||||
Services.Notifier.Information(T("User {0} disabled", user.UserName));
|
||||
Services.Notifier.Success(T("User {0} disabled", user.UserName));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user