From d700b953549996bd408c4102bbbfdae6ce579b07 Mon Sep 17 00:00:00 2001 From: Erik Porter Date: Wed, 3 Mar 2010 11:49:56 -0800 Subject: [PATCH] Added a not found page (needs default text) --HG-- branch : dev --- src/Orchard.Web/Core/HomePage/Controllers/HomeController.cs | 2 ++ src/Orchard.Web/Core/Orchard.Core.csproj | 1 + src/Orchard.Web/Core/Themes/Views/NotFound.ascx | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 src/Orchard.Web/Core/Themes/Views/NotFound.ascx diff --git a/src/Orchard.Web/Core/HomePage/Controllers/HomeController.cs b/src/Orchard.Web/Core/HomePage/Controllers/HomeController.cs index c3f227035..f2bf52112 100644 --- a/src/Orchard.Web/Core/HomePage/Controllers/HomeController.cs +++ b/src/Orchard.Web/Core/HomePage/Controllers/HomeController.cs @@ -6,6 +6,7 @@ using Orchard.Logging; using Orchard.Mvc.ViewModels; using Orchard.Services; using Orchard.Settings; +using Orchard.Themes; namespace Orchard.Core.HomePage.Controllers { [HandleError] @@ -20,6 +21,7 @@ namespace Orchard.Core.HomePage.Controllers { public ILogger Logger { get; set; } protected virtual ISite CurrentSite { get; [UsedImplicitly] private set; } + [Themed] public ActionResult Index() { try { var homepage = CurrentSite.HomePage; diff --git a/src/Orchard.Web/Core/Orchard.Core.csproj b/src/Orchard.Web/Core/Orchard.Core.csproj index 54e3401f0..1c90dbad4 100644 --- a/src/Orchard.Web/Core/Orchard.Core.csproj +++ b/src/Orchard.Web/Core/Orchard.Core.csproj @@ -231,6 +231,7 @@ + diff --git a/src/Orchard.Web/Core/Themes/Views/NotFound.ascx b/src/Orchard.Web/Core/Themes/Views/NotFound.ascx new file mode 100644 index 000000000..8abb96303 --- /dev/null +++ b/src/Orchard.Web/Core/Themes/Views/NotFound.ascx @@ -0,0 +1,4 @@ +<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl" %> +<%@ Import Namespace="Orchard.Mvc.ViewModels"%> +

<%=Html.TitleForPage(T("Not found").ToString()) %>

+

TODO: (erikpo) Add friendly message here

\ No newline at end of file