diff --git a/BTCPayServer/Controllers/AppsController.Crowdsale.cs b/BTCPayServer/Controllers/AppsController.Crowdsale.cs index 8e95443f7..742b866d0 100644 --- a/BTCPayServer/Controllers/AppsController.Crowdsale.cs +++ b/BTCPayServer/Controllers/AppsController.Crowdsale.cs @@ -25,6 +25,7 @@ namespace BTCPayServer.Controllers public string MainImageUrl { get; set; } public string NotificationUrl { get; set; } public string Tagline { get; set; } + public string EmbeddedCSS { get; set; } } @@ -45,6 +46,7 @@ namespace BTCPayServer.Controllers TargetCurrency = settings.TargetCurrency, Description = settings.Description, MainImageUrl = settings.MainImageUrl, + EmbeddedCSS = settings.EmbeddedCSS, EndDate = settings.EndDate, TargetAmount = settings.TargetAmount, CustomCSSLink = settings.CustomCSSLink, @@ -75,6 +77,7 @@ namespace BTCPayServer.Controllers TargetAmount = vm.TargetAmount, CustomCSSLink = vm.CustomCSSLink, MainImageUrl = vm.MainImageUrl, + EmbeddedCSS = vm.EmbeddedCSS, NotificationUrl = vm.NotificationUrl, Tagline = vm.Tagline }); diff --git a/BTCPayServer/Controllers/AppsPublicController.cs b/BTCPayServer/Controllers/AppsPublicController.cs index 7235e731a..5034804e7 100644 --- a/BTCPayServer/Controllers/AppsPublicController.cs +++ b/BTCPayServer/Controllers/AppsPublicController.cs @@ -254,6 +254,7 @@ namespace BTCPayServer.Controllers Description = settings.Description, CustomCSSLink = settings.CustomCSSLink, MainImageUrl = settings.MainImageUrl, + EmbeddedCSS = settings.EmbeddedCSS, StoreId = appData.StoreDataId, AppId = appData.Id, StartDate = settings.StartDate, diff --git a/BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs b/BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs index 56b117231..ca326bdbc 100644 --- a/BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs +++ b/BTCPayServer/Models/AppViewModels/UpdateCrowdfundViewModel.cs @@ -38,5 +38,6 @@ namespace BTCPayServer.Models.AppViewModels public string CustomCSSLink { get; set; } public string Tagline { get; set; } + public string EmbeddedCSS { get; set; } } } diff --git a/BTCPayServer/Models/AppViewModels/ViewCrowdfundViewModel.cs b/BTCPayServer/Models/AppViewModels/ViewCrowdfundViewModel.cs index 457e79fb1..5bc4067d7 100644 --- a/BTCPayServer/Models/AppViewModels/ViewCrowdfundViewModel.cs +++ b/BTCPayServer/Models/AppViewModels/ViewCrowdfundViewModel.cs @@ -11,6 +11,7 @@ namespace BTCPayServer.Models.AppViewModels public string Title { get; set; } public string Description { get; set; } public string MainImageUrl { get; set; } + public string EmbeddedCSS { get; set; } public string CustomCSSLink { get; set; } public DateTime? StartDate { get; set; } public DateTime? EndDate { get; set; } diff --git a/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml b/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml index f830a41b3..0f465b350 100644 --- a/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml +++ b/BTCPayServer/Views/Apps/UpdateCrowdfund.cshtml @@ -24,6 +24,7 @@ +
* @@ -34,35 +35,22 @@
-
- - - - -
-
- - - -
-
- - - + * + +
- - - + * + +
-
- +
* @@ -74,14 +62,33 @@
- * - - -
+ + + + +
- * - - + + + +
+
+ + + + +
+
+ + + +
+ + +
+ + +
diff --git a/BTCPayServer/Views/AppsPublic/MinimalCrowdfund.cshtml b/BTCPayServer/Views/AppsPublic/MinimalCrowdfund.cshtml index cfcb15ce0..167c0cc94 100644 --- a/BTCPayServer/Views/AppsPublic/MinimalCrowdfund.cshtml +++ b/BTCPayServer/Views/AppsPublic/MinimalCrowdfund.cshtml @@ -1,6 +1,6 @@ @using BTCPayServer.Models.AppViewModels @model BTCPayServer.Models.AppViewModels.ViewCrowdfundViewModel -
+
@@ -24,7 +24,7 @@ }
-
+

@Model.Title @@ -43,7 +43,7 @@

-
    +
    • @(Model.EndDate.HasValue? $"Ends {Model.EndDate.Value:dddd, dd MMMM yyyy HH:mm}" : "No specific end date")
    • @(Model.TargetAmount.HasValue? $"{Model.TargetAmount:G29} {Model.TargetCurrency.ToUpperInvariant()} Goal" : "No specific target goal")
    • diff --git a/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml b/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml index ec7b3c3e8..bdb5fdba1 100644 --- a/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml +++ b/BTCPayServer/Views/AppsPublic/ViewCrowdfund.cshtml @@ -20,10 +20,18 @@ } + + @if (!string.IsNullOrEmpty(Model.EmbeddedCSS)) + { + + } + +