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 @@ +