mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Converting Orchard.Themes
--HG-- branch : dev
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Orchard.Themes.Controllers {
|
||||
public AdminController(
|
||||
IOrchardServices services,
|
||||
IThemeService themeService,
|
||||
PreviewTheme previewTheme,
|
||||
IPreviewTheme previewTheme,
|
||||
IAuthorizer authorizer,
|
||||
INotifier notifier,
|
||||
IShapeHelperFactory shapeHelperFactory) {
|
||||
@@ -37,11 +37,11 @@ namespace Orchard.Themes.Controllers {
|
||||
var themes = _themeService.GetInstalledThemes();
|
||||
var currentTheme = _themeService.GetSiteTheme();
|
||||
var model = new ThemesIndexViewModel { CurrentTheme = currentTheme, Themes = themes };
|
||||
return View(Shape.Model(model));
|
||||
return View(model);
|
||||
}
|
||||
catch (Exception exception) {
|
||||
Services.Notifier.Error(T("Listing themes failed: " + exception.Message));
|
||||
return View(Shape.Model(new ThemesIndexViewModel()));
|
||||
return View(new ThemesIndexViewModel());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,6 +102,10 @@ namespace Orchard.Themes.Controllers {
|
||||
}
|
||||
}
|
||||
|
||||
public ActionResult Install() {
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult Install(FormCollection input) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user