Added a not found page (needs default text)

--HG--
branch : dev
This commit is contained in:
Erik Porter
2010-03-03 11:49:56 -08:00
parent a4a81b86e7
commit d700b95354
3 changed files with 7 additions and 0 deletions

View File

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

View File

@@ -231,6 +231,7 @@
<Content Include="Common\Views\DisplayTemplates\Parts\Manage.ascx" />
<Content Include="Dashboard\Views\Web.config" />
<Content Include="Themes\Styles\special.css" />
<Content Include="Themes\Views\NotFound.ascx" />
</ItemGroup>
<ItemGroup>
<Folder Include="Scheduling\Controllers\" />

View File

@@ -0,0 +1,4 @@
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<object>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
<h1><%=Html.TitleForPage(T("Not found").ToString()) %></h1>
<p>TODO: (erikpo) Add friendly message here</p>