From a1543c964fb1a5b961808f99dc65a0a9a1e77514 Mon Sep 17 00:00:00 2001 From: Andre Rodrigues Date: Wed, 1 Dec 2010 16:42:36 -0800 Subject: [PATCH] Delegating theme installation to Orchard.Packaging. --HG-- branch : dev --- .../Controllers/GalleryController.cs | 4 +++ .../Orchard.Packaging.csproj | 4 ++- .../Views/Gallery/AddTheme.cshtml} | 0 .../Controllers/AdminController.cs | 31 +++++++++---------- .../Orchard.Themes/Orchard.Themes.csproj | 1 - .../ViewModels/ThemesIndexViewModel.cs | 1 + .../Orchard.Themes/Views/Admin/Index.cshtml | 4 ++- 7 files changed, 26 insertions(+), 19 deletions(-) rename src/Orchard.Web/Modules/{Orchard.Themes/Views/Admin/Install.cshtml => Orchard.Packaging/Views/Gallery/AddTheme.cshtml} (100%) diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/GalleryController.cs b/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/GalleryController.cs index 7ad804931..3bf4341b2 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/GalleryController.cs +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Controllers/GalleryController.cs @@ -143,6 +143,10 @@ namespace Orchard.Packaging.Controllers { return RedirectToAction(redirectTo == "Themes" ? "Themes" : "Modules"); } + public ActionResult AddTheme(string returnUrl) { + return View(); + } + public ActionResult AddModule(string returnUrl) { return View(); } diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Orchard.Packaging.csproj b/src/Orchard.Web/Modules/Orchard.Packaging/Orchard.Packaging.csproj index d0710b48b..33679069e 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Orchard.Packaging.csproj +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Orchard.Packaging.csproj @@ -120,7 +120,9 @@ - + + +