diff --git a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Assets.json b/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Assets.json deleted file mode 100644 index de2ca1bdd49..00000000000 --- a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Assets.json +++ /dev/null @@ -1,9 +0,0 @@ -[ - { - "generateSourceMaps": false, - "inputs": [ - "Assets/scss/archive-later.scss" - ], - "output": "wwwroot/Styles/archive-later.css" - } -] diff --git a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Assets/scss/archive-later.scss b/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Assets/scss/archive-later.scss deleted file mode 100644 index 8323ec57a3e..00000000000 --- a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Assets/scss/archive-later.scss +++ /dev/null @@ -1,3 +0,0 @@ -.btn-archive-later { - white-space: nowrap; -} diff --git a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Drivers/ArchiveLaterPartDisplayDriver.cs b/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Drivers/ArchiveLaterPartDisplayDriver.cs index 33290d9e171..e80b571142a 100644 --- a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Drivers/ArchiveLaterPartDisplayDriver.cs +++ b/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Drivers/ArchiveLaterPartDisplayDriver.cs @@ -1,4 +1,3 @@ -using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; @@ -37,7 +36,7 @@ public override IDisplayResult Display(ArchiveLaterPart part, BuildPartDisplayCo public override IDisplayResult Edit(ArchiveLaterPart part, BuildPartEditorContext context) => Initialize( GetEditorShapeType(context), - model => PopulateViewModel(part, model)).Location("Actions:10"); + model => PopulateViewModel(part, model)).Location("Actions:10.5"); public override async Task UpdateAsync(ArchiveLaterPart part, IUpdateModel updater, UpdatePartEditorContext context) { @@ -68,6 +67,6 @@ private async ValueTask PopulateViewModel(ArchiveLaterPart part, ArchiveLaterPar viewModel.ScheduledArchiveUtc = part.ScheduledArchiveUtc; viewModel.ScheduledArchiveLocalDateTime = part.ScheduledArchiveUtc.HasValue ? (await _localClock.ConvertToLocalAsync(part.ScheduledArchiveUtc.Value)).DateTime - : (DateTime?)null; + : null; } } diff --git a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Views/ArchiveLaterPart.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Views/ArchiveLaterPart.Edit.cshtml index 4aa997f2509..5c1d3a50da5 100644 --- a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Views/ArchiveLaterPart.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ArchiveLater/Views/ArchiveLaterPart.Edit.cshtml @@ -4,18 +4,19 @@ @inject IAuthorizationService AuthorizationService - - @if (await AuthorizationService.AuthorizeAsync(User, CommonPermissions.PublishContent, Model.ContentItem)) { -
- - +
+
+ + +
+ @if (Model.ScheduledArchiveUtc.HasValue) { -
- +
+
} } diff --git a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/wwwroot/Styles/archive-later.css b/src/OrchardCore.Modules/OrchardCore.ArchiveLater/wwwroot/Styles/archive-later.css deleted file mode 100644 index 2c366af41fc..00000000000 --- a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/wwwroot/Styles/archive-later.css +++ /dev/null @@ -1,3 +0,0 @@ -.btn-archive-later { - white-space: nowrap; -} diff --git a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/wwwroot/Styles/archive-later.min.css b/src/OrchardCore.Modules/OrchardCore.ArchiveLater/wwwroot/Styles/archive-later.min.css deleted file mode 100644 index 1adc7c90001..00000000000 --- a/src/OrchardCore.Modules/OrchardCore.ArchiveLater/wwwroot/Styles/archive-later.min.css +++ /dev/null @@ -1 +0,0 @@ -.btn-archive-later{white-space:nowrap} diff --git a/src/OrchardCore.Modules/OrchardCore.ContentPreview/Views/ContentPreview.Button.cshtml b/src/OrchardCore.Modules/OrchardCore.ContentPreview/Views/ContentPreview.Button.cshtml index cca18eaaae6..e05e37d8595 100644 --- a/src/OrchardCore.Modules/OrchardCore.ContentPreview/Views/ContentPreview.Button.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.ContentPreview/Views/ContentPreview.Button.cshtml @@ -10,7 +10,7 @@ @if (hasPreviewPermission) { - @T["Preview"] + @T["Preview"] } diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Content.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Content.Edit.cshtml index 6ad3a832896..b6e6bd6e790 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Content.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Content.Edit.cshtml @@ -32,7 +32,7 @@ @if (!string.IsNullOrWhiteSpace(returnUrl) && Url.IsLocalUrl(returnUrl)) { - @T["Cancel"] + @T["Cancel"] }
diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Content.PublishButton.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Content.PublishButton.cshtml index 015b66bb015..4d53c064a70 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Content.PublishButton.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Content.PublishButton.cshtml @@ -4,11 +4,11 @@ @if (string.IsNullOrWhiteSpace(returnUrl)) { - + } else { -
+
+ } else { -
+
+
+ @if (Model.ScheduledPublishUtc.HasValue) { -
- +
+
} } diff --git a/src/OrchardCore.Modules/OrchardCore.PublishLater/wwwroot/Styles/publish-later.css b/src/OrchardCore.Modules/OrchardCore.PublishLater/wwwroot/Styles/publish-later.css deleted file mode 100644 index 49b19f3d5e5..00000000000 --- a/src/OrchardCore.Modules/OrchardCore.PublishLater/wwwroot/Styles/publish-later.css +++ /dev/null @@ -1,3 +0,0 @@ -.btn-publish-later { - white-space: nowrap; -} diff --git a/src/OrchardCore.Modules/OrchardCore.PublishLater/wwwroot/Styles/publish-later.min.css b/src/OrchardCore.Modules/OrchardCore.PublishLater/wwwroot/Styles/publish-later.min.css deleted file mode 100644 index 23e844517ce..00000000000 --- a/src/OrchardCore.Modules/OrchardCore.PublishLater/wwwroot/Styles/publish-later.min.css +++ /dev/null @@ -1 +0,0 @@ -.btn-publish-later{white-space:nowrap}