From 4ae10465712e0ed7f4eeef2d9000345bbd0ff7c2 Mon Sep 17 00:00:00 2001 From: d11n Date: Wed, 21 Feb 2024 20:54:39 +0100 Subject: [PATCH] Server Settings: Customize instance name and add contact URL (#5718) * Server Settings: Customize instance name and add contact URL - The custom instance name would improve #5563 - Added contact URL closes #4806 * Fix custom logo display --- .../Components/MainNav/Default.cshtml | 2 +- .../Controllers/UIServerController.cs | 121 +++++++++++------- .../ServerViewModels/BrandingViewModel.cs | 40 ++++++ BTCPayServer/Services/ServerSettings.cs | 14 ++ BTCPayServer/Services/ThemesSettings.cs | 9 -- .../Shared/PointOfSale/Public/_Layout.cshtml | 5 +- .../Views/Shared/_LayoutSignedOut.cshtml | 17 ++- .../Views/UIError/_LayoutError.cshtml | 2 +- BTCPayServer/Views/UIHome/Home.cshtml | 8 +- .../{Theme.cshtml => Branding.cshtml} | 78 ++++++----- .../Views/UIServer/Maintenance.cshtml | 4 +- BTCPayServer/Views/UIServer/ServerNavPages.cs | 2 +- BTCPayServer/Views/UIServer/_Nav.cshtml | 2 +- .../Views/UIUserStores/CreateStore.cshtml | 4 +- 14 files changed, 206 insertions(+), 102 deletions(-) create mode 100644 BTCPayServer/Models/ServerViewModels/BrandingViewModel.cs create mode 100644 BTCPayServer/Services/ServerSettings.cs rename BTCPayServer/Views/UIServer/{Theme.cshtml => Branding.cshtml} (84%) diff --git a/BTCPayServer/Components/MainNav/Default.cshtml b/BTCPayServer/Components/MainNav/Default.cshtml index 23c9d3835..da209c340 100644 --- a/BTCPayServer/Components/MainNav/Default.cshtml +++ b/BTCPayServer/Components/MainNav/Default.cshtml @@ -252,7 +252,7 @@ {