diff --git a/src/Orchard.Tests.Modules/Indexing/LuceneSearchBuilderTests.cs b/src/Orchard.Tests.Modules/Indexing/LuceneSearchBuilderTests.cs index 1b1d19aee..a3995e4e4 100644 --- a/src/Orchard.Tests.Modules/Indexing/LuceneSearchBuilderTests.cs +++ b/src/Orchard.Tests.Modules/Indexing/LuceneSearchBuilderTests.cs @@ -287,13 +287,13 @@ namespace Orchard.Tests.Modules.Indexing { [Test] public void FiltersShouldNotAlterResults() { _provider.CreateIndex("default"); - _provider.Store("default", _provider.New(1).Add("body", "Orchard has been developped by Mirosoft in C#").Analyze().Add("culture", 1033)); - _provider.Store("default", _provider.New(2).Add("body", "Windows a été développé par Mirosoft en C++").Analyze().Add("culture", 1036)); + _provider.Store("default", _provider.New(1).Add("body", "Orchard has been developped by Microsoft in C#").Analyze().Add("culture", 1033)); + _provider.Store("default", _provider.New(2).Add("body", "Windows a été développé par Microsoft en C++").Analyze().Add("culture", 1036)); _provider.Store("default", _provider.New(3).Add("title", "Home").Analyze().Add("culture", 1033)); - Assert.That(_searchBuilder.WithField("body", "Mirosoft").Count(), Is.EqualTo(2)); - Assert.That(_searchBuilder.WithField("body", "Mirosoft").WithField("culture", 1033).Count(), Is.EqualTo(3)); - Assert.That(_searchBuilder.WithField("body", "Mirosoft").WithField("culture", 1033).AsFilter().Count(), Is.EqualTo(1)); + Assert.That(_searchBuilder.WithField("body", "Microsoft").Count(), Is.EqualTo(2)); + Assert.That(_searchBuilder.WithField("body", "Microsoft").WithField("culture", 1033).Count(), Is.EqualTo(3)); + Assert.That(_searchBuilder.WithField("body", "Microsoft").WithField("culture", 1033).AsFilter().Count(), Is.EqualTo(1)); Assert.That(_searchBuilder.WithField("body", "Orchard").WithField("culture", 1036).Count(), Is.EqualTo(2)); Assert.That(_searchBuilder.WithField("body", "Orchard").WithField("culture", 1036).AsFilter().Count(), Is.EqualTo(0)); diff --git a/src/Orchard.Web/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/DataMigration.txt b/src/Orchard.Web/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/DataMigration.txt index 8ad2238b0..527938e60 100644 --- a/src/Orchard.Web/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/DataMigration.txt +++ b/src/Orchard.Web/Modules/Orchard.CodeGeneration/CodeGenerationTemplates/DataMigration.txt @@ -7,7 +7,7 @@ using Orchard.ContentManagement.MetaData.Builders; using Orchard.Core.Contents.Extensions; using Orchard.Data.Migration; -namespace $$FeatureName$$.DataMigrations { +namespace $$FeatureName$$ { public class Migrations : DataMigrationImpl { public int Create() { diff --git a/src/Orchard.Web/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs b/src/Orchard.Web/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs index c19253228..4df6362f9 100644 --- a/src/Orchard.Web/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs +++ b/src/Orchard.Web/Modules/Orchard.CodeGeneration/Commands/CodeGenerationCommands.cs @@ -227,7 +227,6 @@ namespace Orchard.CodeGeneration.Commands { File.WriteAllText(propertiesPath + "\\AssemblyInfo.cs", templateText); content.Add(propertiesPath + "\\AssemblyInfo.cs"); - File.WriteAllText(modulePath + "Web.config", File.ReadAllText(_codeGenTemplatePath + "ModuleWebConfig.txt")); templateText = File.ReadAllText(_codeGenTemplatePath + "ModuleManifest.txt"); templateText = templateText.Replace("$$ModuleName$$", moduleName); File.WriteAllText(modulePath + "Module.txt", templateText); diff --git a/src/Orchard.Web/Modules/Orchard.CodeGeneration/Orchard.CodeGeneration.csproj b/src/Orchard.Web/Modules/Orchard.CodeGeneration/Orchard.CodeGeneration.csproj index 085f01e4c..28ce9f669 100644 --- a/src/Orchard.Web/Modules/Orchard.CodeGeneration/Orchard.CodeGeneration.csproj +++ b/src/Orchard.Web/Modules/Orchard.CodeGeneration/Orchard.CodeGeneration.csproj @@ -61,7 +61,6 @@ - diff --git a/src/Orchard.Web/Modules/Orchard.Indexing/Handlers/CreateIndexingTaskHandler.cs b/src/Orchard.Web/Modules/Orchard.Indexing/Handlers/CreateIndexingTaskHandler.cs index 0390b43cc..7008bf70e 100644 --- a/src/Orchard.Web/Modules/Orchard.Indexing/Handlers/CreateIndexingTaskHandler.cs +++ b/src/Orchard.Web/Modules/Orchard.Indexing/Handlers/CreateIndexingTaskHandler.cs @@ -1,7 +1,6 @@ using Orchard.ContentManagement.Handlers; using Orchard.ContentManagement; using Orchard.Tasks.Indexing; -using System.Collections.Generic; namespace Orchard.Indexing.Handlers { /// @@ -9,16 +8,10 @@ namespace Orchard.Indexing.Handlers { /// is published, and to delete them when the content item is unpublished. /// public class CreateIndexingTaskHandler : ContentHandler { - private const string SearchIndexName = "Search"; private readonly IIndexingTaskManager _indexingTaskManager; - private readonly IEnumerable _indexNotifierHandlers; - public CreateIndexingTaskHandler( - IIndexingTaskManager indexingTaskManager, - IEnumerable indexNotifierHandlers - ) { + public CreateIndexingTaskHandler(IIndexingTaskManager indexingTaskManager) { _indexingTaskManager = indexingTaskManager; - _indexNotifierHandlers = indexNotifierHandlers; OnPublished(CreateIndexingTask); OnUnpublished(CreateIndexingTask); diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Styles/orchard-packaging-admin.css b/src/Orchard.Web/Modules/Orchard.Packaging/Styles/orchard-packaging-admin.css index 6101abb10..ffcf95666 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Styles/orchard-packaging-admin.css +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Styles/orchard-packaging-admin.css @@ -5,18 +5,45 @@ padding: 1.2em 0.4em 0.5em } .contentItems .properties { - float:left; + float: left; + clear: both; } .contentItems .pageStatus { - margin:.8em 0; - color:#666; + margin: .8em 0; + color: #666; } -.thumbnail { +.iconThumbnail { + padding-left: 70px; +} +.screenshotThumbnail { + padding-left: 191px; +} +.column { float: left; - padding: 1.2em 1.2em 0.5em 0em; - width: 10%; + position: relative; +} +.extensionThumbnail { + margin-left: -100%; + padding-top: 20px; +} +.iconThumbnail .extensionThumbnail { + width: 70px; + right: 70px; + height: 50px; +} +.screenshotThumbnail .extensionThumbnail { + width: 191px; + right: 191px; + height: 128px; } .extensionDetails { - float: left; - width: 85%; -} \ No newline at end of file + width: 100%; +} +.iconThumbnail .thumbnail { + width: 50px; + height: 50px; +} +.screenshotThumbnail .thumbnail { + width: 171px; + height: 128px; +} diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Modules.cshtml b/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Modules.cshtml index 0b7a99566..bde5072f9 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Modules.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Modules.cshtml @@ -28,30 +28,15 @@ iconUrl = Href("../../Content/Images/ModuleDefaultIcon.png"); } } - -
-
-

@item.Title - @T("Version: {0}", item.Version)

+
+
+

@item.Title - @T("Version: {0}", item.Version)

@(item.Description == null ? T("(No description").Text : item.Description)

  • @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
  •  | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
  •  | @T("Rating: {0}", item.Rating)
  •  | @T("Ratings Count: {0}", item.RatingsCount)
  •  | @T("Website: ") @if (!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl } else { @T("Unknown").ToString() }
+
- - -
-

@(item.Description == null ? T("(No description").Text : item.Description)

-
    -
  • @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
  • -
  •  | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
  • -
  •  | @T("Rating: {0}", item.Rating)
  • -
  •  | @T("Ratings Count: {0}", item.RatingsCount)
  • -
  •  | @T("Website: ") - @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl } - else { @T("Unknown").ToString() } -
  • -
+
+ module
} diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Themes.cshtml b/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Themes.cshtml index a29171c47..adb408d63 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Themes.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Views/Gallery/Themes.cshtml @@ -19,42 +19,50 @@ } @if (Model.Extensions.Count() > 0) { -
    +
      @foreach (var item in Model.Extensions) {
    • @{ + string extensionClass = "iconThumbnail"; string iconUrl = @item.IconUrl; if (!string.IsNullOrWhiteSpace(@item.FirstScreenshot)) { iconUrl = Href(@item.FirstScreenshot); + extensionClass = "screenshotThumbnail"; } else if (string.IsNullOrWhiteSpace(iconUrl)) { iconUrl = Href("../../Content/Images/imagePlaceholder.png"); + extensionClass = "screenshotThumbnail"; } } - -
      -
      -

      @item.Title - @T("Version: {0}", item.Version)

      +
      +
      +
      +

      @item.Title - @T("Version: {0}", item.Version)

      +
      + + + +
      +

      @(item.Description == null ? T("(No description").Text : item.Description)

      +
        +
      • @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
      • +
      •  | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
      • +
      •  | @T("Rating: {0}", item.Rating)
      • +
      •  | @T("Ratings Count: {0}", item.RatingsCount)
      • +
      •  | @T("Website: ") + @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl } + else { @T("Unknown").ToString() } +
      • +
      +
      - - -
      -

      @(item.Description == null ? T("(No description").Text : item.Description)

      -
        -
      • @T("Last Updated: {0}", DateTime.Now.ToLocalTime())
      • -
      •  | @T("Author: {0}", !string.IsNullOrEmpty(item.Authors) ? item.Authors : T("Unknown").ToString())
      • -
      •  | @T("Rating: {0}", item.Rating)
      • -
      •  | @T("Ratings Count: {0}", item.RatingsCount)
      • -
      •  | @T("Website: ") - @if(!string.IsNullOrEmpty(item.ProjectUrl)) { @item.ProjectUrl } - else { @T("Unknown").ToString() } -
      • -
      +
      + theme
    • } diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Module.txt b/src/Orchard.Web/Modules/Orchard.Setup/Module.txt index c916f5040..446a69aaf 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Module.txt +++ b/src/Orchard.Web/Modules/Orchard.Setup/Module.txt @@ -1,5 +1,4 @@ Name: Setup -AntiForgery: enabled Author: The Orchard Team Website: http://orchardproject.net Version: 0.9.0 diff --git a/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs b/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs index 8bbc8a922..7da36e3f0 100644 --- a/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs +++ b/src/Orchard.Web/Modules/Orchard.Users/Controllers/AccountController.cs @@ -45,7 +45,7 @@ namespace Orchard.Users.Controllers { if (currentUser == null) { Logger.Information("Access denied to anonymous request on {0}", returnUrl); var shape = _orchardServices.New.LogOn().Title(T("Access Denied").Text); - return new ShapeResult(shape); + return new ShapeResult(this, shape); } //TODO: (erikpo) Add a setting for whether or not to log access denieds since these can fill up a database pretty fast from bots on a high traffic site @@ -59,7 +59,7 @@ namespace Orchard.Users.Controllers { return Redirect("~/"); var shape = _orchardServices.New.LogOn().Title(T("Log On").Text); - return new ShapeResult(shape); + return new ShapeResult(this, shape); } [HttpPost] @@ -69,7 +69,7 @@ namespace Orchard.Users.Controllers { var user = ValidateLogOn(userNameOrEmail, password); if (!ModelState.IsValid) { var shape = _orchardServices.New.LogOn().Title(T("Log On").Text); - return new ShapeResult(shape); + return new ShapeResult(this, shape); } _authenticationService.SignIn(user, false); diff --git a/src/Orchard/Mvc/ShapeResult.cs b/src/Orchard/Mvc/ShapeResult.cs index 797dc44f3..d357c6ba9 100644 --- a/src/Orchard/Mvc/ShapeResult.cs +++ b/src/Orchard/Mvc/ShapeResult.cs @@ -2,7 +2,9 @@ namespace Orchard.Mvc { public class ShapeResult : ViewResult { - public ShapeResult(dynamic shape) { + public ShapeResult(ControllerBase controller, dynamic shape) { + ViewData = controller.ViewData; + TempData = controller.TempData; ViewData.Model = shape; ViewName = "~/Core/Shapes/Views/ShapeResult/Display.cshtml"; }