Converting Orchard.Themes

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-09-16 15:41:25 -07:00
parent 4e7ad801d1
commit 691f3f30eb
13 changed files with 189 additions and 181 deletions

View File

@@ -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 {