mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed code formatting.
This commit is contained in:
@@ -21,11 +21,10 @@ namespace Orchard.AuditTrail.Recipes.Executors {
|
||||
_wca = wca;
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
public override string Name {
|
||||
get { return "AuditTrail"; }
|
||||
}
|
||||
|
||||
|
||||
public override void Execute(RecipeExecutionContext context) {
|
||||
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);
|
||||
|
@@ -13,18 +13,15 @@ namespace Orchard.DynamicForms.Recipes.Builders {
|
||||
_formService = formService;
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
public override string Name {
|
||||
get { return "FormSubmissions"; }
|
||||
}
|
||||
|
||||
public override LocalizedString DisplayName
|
||||
{
|
||||
public override LocalizedString DisplayName {
|
||||
get { return T("Form Submissions"); }
|
||||
}
|
||||
|
||||
public override LocalizedString Description
|
||||
{
|
||||
public override LocalizedString Description {
|
||||
get { return T("Exports submitted forms."); }
|
||||
}
|
||||
|
||||
|
@@ -14,8 +14,7 @@ namespace Orchard.DynamicForms.Recipes.Executors {
|
||||
_formService = formService;
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
public override string Name {
|
||||
get { return "Forms"; }
|
||||
}
|
||||
public override void Execute(RecipeExecutionContext context) {
|
||||
|
@@ -6,7 +6,7 @@ using Orchard.Localization;
|
||||
using Orchard.Recipes.Services;
|
||||
|
||||
namespace Orchard.Layouts.Recipes.Builders {
|
||||
|
||||
|
||||
public class CustomElementsStep : RecipeBuilderStep {
|
||||
private readonly IRepository<ElementBlueprint> _repository;
|
||||
|
||||
@@ -14,18 +14,15 @@ namespace Orchard.Layouts.Recipes.Builders {
|
||||
_repository = repository;
|
||||
}
|
||||
|
||||
public override string Name
|
||||
{
|
||||
public override string Name {
|
||||
get { return "CustomElements"; }
|
||||
}
|
||||
|
||||
public override LocalizedString DisplayName
|
||||
{
|
||||
public override LocalizedString DisplayName {
|
||||
get { return T("Custom Elements"); }
|
||||
}
|
||||
|
||||
public override LocalizedString Description
|
||||
{
|
||||
public override LocalizedString Description {
|
||||
get { return T("Exports custom defined elements."); }
|
||||
}
|
||||
|
||||
|
@@ -32,7 +32,7 @@ namespace Orchard.Layouts.Recipes.Executors {
|
||||
element.BaseElementState = elementElement.Element("BaseElementState").Value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ElementBlueprint GetOrCreateElement(string typeName) {
|
||||
var element = _repository.Get(x => x.ElementTypeName == typeName);
|
||||
|
||||
|
Reference in New Issue
Block a user