mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixed code formatting.
This commit is contained in:
@@ -21,11 +21,10 @@ namespace Orchard.AuditTrail.Recipes.Executors {
|
|||||||
_wca = wca;
|
_wca = wca;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Name
|
public override string Name {
|
||||||
{
|
|
||||||
get { return "AuditTrail"; }
|
get { return "AuditTrail"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Execute(RecipeExecutionContext context) {
|
public override void Execute(RecipeExecutionContext context) {
|
||||||
if (!_authorizer.Authorize(Permissions.ImportAuditTrail)) {
|
if (!_authorizer.Authorize(Permissions.ImportAuditTrail)) {
|
||||||
Logger.Warning("Blocked {0} from importing an audit trail because this user does not have the ImportauditTrail permission.", _wca.GetContext().CurrentUser.UserName);
|
Logger.Warning("Blocked {0} from importing an audit trail because this user does not have the ImportauditTrail permission.", _wca.GetContext().CurrentUser.UserName);
|
||||||
|
|||||||
@@ -13,18 +13,15 @@ namespace Orchard.DynamicForms.Recipes.Builders {
|
|||||||
_formService = formService;
|
_formService = formService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Name
|
public override string Name {
|
||||||
{
|
|
||||||
get { return "FormSubmissions"; }
|
get { return "FormSubmissions"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override LocalizedString DisplayName
|
public override LocalizedString DisplayName {
|
||||||
{
|
|
||||||
get { return T("Form Submissions"); }
|
get { return T("Form Submissions"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override LocalizedString Description
|
public override LocalizedString Description {
|
||||||
{
|
|
||||||
get { return T("Exports submitted forms."); }
|
get { return T("Exports submitted forms."); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ namespace Orchard.DynamicForms.Recipes.Executors {
|
|||||||
_formService = formService;
|
_formService = formService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Name
|
public override string Name {
|
||||||
{
|
|
||||||
get { return "Forms"; }
|
get { return "Forms"; }
|
||||||
}
|
}
|
||||||
public override void Execute(RecipeExecutionContext context) {
|
public override void Execute(RecipeExecutionContext context) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using Orchard.Localization;
|
|||||||
using Orchard.Recipes.Services;
|
using Orchard.Recipes.Services;
|
||||||
|
|
||||||
namespace Orchard.Layouts.Recipes.Builders {
|
namespace Orchard.Layouts.Recipes.Builders {
|
||||||
|
|
||||||
public class CustomElementsStep : RecipeBuilderStep {
|
public class CustomElementsStep : RecipeBuilderStep {
|
||||||
private readonly IRepository<ElementBlueprint> _repository;
|
private readonly IRepository<ElementBlueprint> _repository;
|
||||||
|
|
||||||
@@ -14,18 +14,15 @@ namespace Orchard.Layouts.Recipes.Builders {
|
|||||||
_repository = repository;
|
_repository = repository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string Name
|
public override string Name {
|
||||||
{
|
|
||||||
get { return "CustomElements"; }
|
get { return "CustomElements"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override LocalizedString DisplayName
|
public override LocalizedString DisplayName {
|
||||||
{
|
|
||||||
get { return T("Custom Elements"); }
|
get { return T("Custom Elements"); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public override LocalizedString Description
|
public override LocalizedString Description {
|
||||||
{
|
|
||||||
get { return T("Exports custom defined elements."); }
|
get { return T("Exports custom defined elements."); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Orchard.Layouts.Recipes.Executors {
|
|||||||
element.BaseElementState = elementElement.Element("BaseElementState").Value;
|
element.BaseElementState = elementElement.Element("BaseElementState").Value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private ElementBlueprint GetOrCreateElement(string typeName) {
|
private ElementBlueprint GetOrCreateElement(string typeName) {
|
||||||
var element = _repository.Get(x => x.ElementTypeName == typeName);
|
var element = _repository.Get(x => x.ElementTypeName == typeName);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user