mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Replace tabs for spaces in views, css and cs files.
--HG-- branch : dev
This commit is contained in:
@@ -33,4 +33,3 @@
|
|||||||
@Html.AntiForgeryTokenOrchard()
|
@Html.AntiForgeryTokenOrchard()
|
||||||
</fieldset>
|
</fieldset>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -10,7 +10,6 @@ using Orchard.Packaging.ViewModels;
|
|||||||
using Orchard.Themes;
|
using Orchard.Themes;
|
||||||
using Orchard.UI.Admin;
|
using Orchard.UI.Admin;
|
||||||
using Orchard.UI.Notify;
|
using Orchard.UI.Notify;
|
||||||
using System.Xml.XPath;
|
|
||||||
|
|
||||||
namespace Orchard.Packaging.Controllers {
|
namespace Orchard.Packaging.Controllers {
|
||||||
[OrchardFeature("Gallery")]
|
[OrchardFeature("Gallery")]
|
||||||
@@ -34,7 +33,7 @@ namespace Orchard.Packaging.Controllers {
|
|||||||
T = NullLocalizer.Instance;
|
T = NullLocalizer.Instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
Localizer T { get; set; }
|
public Localizer T { get; set; }
|
||||||
|
|
||||||
public ActionResult Sources() {
|
public ActionResult Sources() {
|
||||||
return View(new PackagingSourcesViewModel {
|
return View(new PackagingSourcesViewModel {
|
||||||
|
@@ -18,7 +18,6 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@if (Model.Extensions.Count() > 0) {
|
@if (Model.Extensions.Count() > 0) {
|
||||||
<ul class="contentItems">
|
<ul class="contentItems">
|
||||||
@foreach (var item in Model.Extensions) {
|
@foreach (var item in Model.Extensions) {
|
||||||
|
@@ -211,7 +211,7 @@ namespace Orchard.Users.Controllers {
|
|||||||
|
|
||||||
protected override void OnActionExecuting(ActionExecutingContext filterContext) {
|
protected override void OnActionExecuting(ActionExecutingContext filterContext) {
|
||||||
if (filterContext.HttpContext.User.Identity is WindowsIdentity) {
|
if (filterContext.HttpContext.User.Identity is WindowsIdentity) {
|
||||||
throw new InvalidOperationException("Windows authentication is not supported.");
|
throw new InvalidOperationException(T("Windows authentication is not supported.").ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -6,6 +6,7 @@ using System.Text;
|
|||||||
using System.Web.Security;
|
using System.Web.Security;
|
||||||
using System.Xml.Linq;
|
using System.Xml.Linq;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
|
using Orchard.Localization;
|
||||||
using Orchard.Logging;
|
using Orchard.Logging;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.Security;
|
using Orchard.Security;
|
||||||
@@ -27,9 +28,11 @@ namespace Orchard.Users.Services {
|
|||||||
_messageManager = messageManager;
|
_messageManager = messageManager;
|
||||||
_userEventHandlers = userEventHandlers;
|
_userEventHandlers = userEventHandlers;
|
||||||
Logger = NullLogger.Instance;
|
Logger = NullLogger.Instance;
|
||||||
|
T = NullLocalizer.Instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ILogger Logger { get; set; }
|
public ILogger Logger { get; set; }
|
||||||
|
public Localizer T { get; set; }
|
||||||
|
|
||||||
public MembershipSettings GetSettings() {
|
public MembershipSettings GetSettings() {
|
||||||
var settings = new MembershipSettings();
|
var settings = new MembershipSettings();
|
||||||
@@ -179,7 +182,7 @@ namespace Orchard.Users.Services {
|
|||||||
SetPasswordEncrypted(partRecord, password);
|
SetPasswordEncrypted(partRecord, password);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ApplicationException("Unexpected password format value");
|
throw new ApplicationException(T("Unexpected password format value").ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
using Autofac;
|
|
||||||
using Autofac.Integration.Web;
|
|
||||||
|
|
||||||
namespace Orchard.Mvc.Html {
|
namespace Orchard.Mvc.Html {
|
||||||
public static class ContainerExtensions {
|
public static class ContainerExtensions {
|
||||||
|
@@ -6,7 +6,6 @@ using System.Globalization;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using Autofac.Features.Metadata;
|
using Autofac.Features.Metadata;
|
||||||
using Orchard.DisplayManagement.Descriptors;
|
|
||||||
using Orchard.Environment.Extensions.Models;
|
using Orchard.Environment.Extensions.Models;
|
||||||
|
|
||||||
namespace Orchard.UI.Resources {
|
namespace Orchard.UI.Resources {
|
||||||
|
Reference in New Issue
Block a user