Explicitly Theme front-end controllers

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-09-30 16:37:32 -07:00
parent 0b34f18426
commit f997ca4143
9 changed files with 15 additions and 7 deletions

View File

@@ -1,8 +1,10 @@
using System.Web.Mvc;
using Orchard.ContentManagement;
using Orchard.DisplayManagement;
using Orchard.Themes;
namespace Orchard.Core.Contents.Controllers {
[Themed]
public class ItemController : Controller {
private readonly IContentManager _contentManager;

View File

@@ -4,9 +4,9 @@ using System.Web.Mvc;
using Orchard.Core.Feeds.Models;
using Orchard.Logging;
using Orchard.Mvc.Results;
using Orchard.Themes;
namespace Orchard.Core.Feeds.Controllers {
public class FeedController : Controller {
private readonly IEnumerable<IFeedBuilderProvider> _feedFormatProviders;
private readonly IEnumerable<IFeedQueryProvider> _feedQueryProviders;

View File

@@ -7,6 +7,7 @@ using Orchard.Core.Routable.Models;
using Orchard.Data;
using Orchard.DisplayManagement;
using Orchard.Localization;
using Orchard.Themes;
namespace Orchard.Core.Routable.Controllers {
[ValidateInput(false)]
@@ -24,6 +25,7 @@ namespace Orchard.Core.Routable.Controllers {
dynamic Shape { get; set; }
[Themed]
public ActionResult Display(string path) {
var matchedPath = _routablePathConstraint.FindPath(path);
if (string.IsNullOrEmpty(matchedPath)) {

View File

@@ -9,8 +9,10 @@ using Orchard.Blogs.Services;
using Orchard.DisplayManagement;
using Orchard.Logging;
using Orchard.Mvc.Results;
using Orchard.Themes;
namespace Orchard.Blogs.Controllers {
[Themed]
public class BlogController : Controller {
private readonly IOrchardServices _services;
private readonly IBlogService _blogService;

View File

@@ -9,8 +9,10 @@ using Orchard.DisplayManagement;
using Orchard.Localization;
using Orchard.Mvc.Results;
using Orchard.Security;
using Orchard.Themes;
namespace Orchard.Blogs.Controllers {
[Themed]
public class BlogPostController : Controller {
private readonly IOrchardServices _services;
private readonly IBlogService _blogService;

View File

@@ -9,9 +9,10 @@ using System.Linq;
using System;
using System.Collections.Generic;
using Orchard.Collections;
using Orchard.Themes;
namespace Orchard.Search.Controllers {
[ValidateInput(false)]
[ValidateInput(false), Themed]
public class SearchController : Controller {
private readonly ISearchService _searchService;
private readonly IContentManager _contentManager;

View File

@@ -12,8 +12,7 @@ using Orchard.Themes;
using Orchard.UI.Notify;
namespace Orchard.Setup.Controllers {
[ValidateInput(false)]
[Themed]
[ValidateInput(false), Themed]
public class SetupController : Controller {
private readonly IAppDataFolder _appDataFolder;
private readonly INotifier _notifier;

View File

@@ -10,9 +10,10 @@ using Orchard.Security;
using Orchard.Settings;
using Orchard.Tags.Services;
using Orchard.Tags.ViewModels;
using Orchard.Themes;
namespace Orchard.Tags.Controllers {
[ValidateInput(false)]
[ValidateInput(false), Themed]
public class HomeController : Controller {
private readonly ITagService _tagService;
private readonly IContentManager _contentManager;

View File

@@ -17,8 +17,7 @@ using Orchard.Users.Models;
using Orchard.Mvc.Results;
namespace Orchard.Users.Controllers {
[HandleError]
[Themed]
[HandleError, Themed]
public class AccountController : Controller {
private readonly IAuthenticationService _authenticationService;
private readonly IMembershipService _membershipService;