From 58f9b9b0c1950a4d62f2463b3e1f4697f6e129f6 Mon Sep 17 00:00:00 2001 From: Kukks Date: Sun, 14 Jun 2020 16:09:36 +0200 Subject: [PATCH] Handle Supporters display closes #1624 --- BTCPayServer/Views/Error/_LayoutError.cshtml | 2 +- .../Views/Shared/_BTCPaySupporters.cshtml | 60 ++++++++++++------- .../Views/Shared/_LayoutWelcome.cshtml | 2 +- 3 files changed, 40 insertions(+), 24 deletions(-) diff --git a/BTCPayServer/Views/Error/_LayoutError.cshtml b/BTCPayServer/Views/Error/_LayoutError.cshtml index c517459d1..bf3da3a61 100644 --- a/BTCPayServer/Views/Error/_LayoutError.cshtml +++ b/BTCPayServer/Views/Error/_LayoutError.cshtml @@ -110,7 +110,7 @@

- @await Html.PartialAsync("_BTCPaySupporters", new ViewDataDictionary(ViewData) { { "Justify", "center" } }) +
diff --git a/BTCPayServer/Views/Shared/_BTCPaySupporters.cshtml b/BTCPayServer/Views/Shared/_BTCPaySupporters.cshtml index ad17f4561..658d9e497 100644 --- a/BTCPayServer/Views/Shared/_BTCPaySupporters.cshtml +++ b/BTCPayServer/Views/Shared/_BTCPaySupporters.cshtml @@ -1,8 +1,14 @@ -

BTCPayServer Supporters

-
+@model bool +

+ BTCPayServer Supporters + + + +

+
- Sponsor Square Crypto + Sponsor Square Crypto
Square Crypto @@ -10,7 +16,7 @@
- Sponsor BTSE + Sponsor BTSE
BTSE @@ -18,7 +24,7 @@
- Sponsor DG lab + Sponsor DG lab
DG Lab @@ -34,26 +40,36 @@
-
- - Sponsor LunaNode - -
- LunaNode -
-
- +
+
+ + @if (Model) + { +
+ + Sponsor LunaNode + +
+ LunaNode +
+
+ + } + else + { + View all supporters + }
diff --git a/BTCPayServer/Views/Shared/_LayoutWelcome.cshtml b/BTCPayServer/Views/Shared/_LayoutWelcome.cshtml index b0223abb1..7d10b9651 100644 --- a/BTCPayServer/Views/Shared/_LayoutWelcome.cshtml +++ b/BTCPayServer/Views/Shared/_LayoutWelcome.cshtml @@ -102,7 +102,7 @@

- @await Html.PartialAsync("_BTCPaySupporters") +
@RenderBody()