#6410 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

Contained in branches: dev#gitext://gotobranch/dev
Contained in no tag
This commit is contained in:
Szymon Seliga
2016-03-22 21:19:50 +01:00
parent 4cda6672f9
commit 694aeb5062
71 changed files with 214 additions and 186 deletions

View File

@@ -56,7 +56,7 @@ namespace Orchard.AuditTrail.Controllers {
var restoredContentItem = _recycleBin.Restore(contentItem);
var restoredContentItemTitle = _contentManager.GetItemMetadata(restoredContentItem).DisplayText;
_notifier.Information(T(""{0}" has been restored.", restoredContentItemTitle));
_notifier.Success(T(""{0}" has been restored.", restoredContentItemTitle));
return this.RedirectReturn(returnUrl, () => Url.Action("Index", "RecycleBin"));
}
@@ -115,7 +115,7 @@ namespace Orchard.AuditTrail.Controllers {
}
_recycleBin.Restore(contentItem);
_notifier.Information(T(""{0}" has been restored.", contentItemTitle));
_notifier.Success(T(""{0}" has been restored.", contentItemTitle));
}
}
@@ -131,7 +131,7 @@ namespace Orchard.AuditTrail.Controllers {
try {
_contentManager.Destroy(contentItem);
_notifier.Information(T(""{0}" has been permanently deleted.", contentItemTitle));
_notifier.Success(T(""{0}" has been permanently deleted.", contentItemTitle));
}
catch (Exception ex) {
Logger.Error(ex, "An exception occurred while trying to permanently delete content with ID {0}.", contentItem.Id);