From 24d6532dac6722b4c2e8807fd544e18ff03acfd2 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 6 Nov 2019 23:58:04 +0900 Subject: [PATCH] Add onion link to login/register --- .../Views/Account/_WelcomeLayout.cshtml | 14 +++- .../wwwroot/img/icons/Onion_Color.svg | 65 +++++++++++++++++++ 2 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 BTCPayServer/wwwroot/img/icons/Onion_Color.svg diff --git a/BTCPayServer/Views/Account/_WelcomeLayout.cshtml b/BTCPayServer/Views/Account/_WelcomeLayout.cshtml index 9a94e0924..62f4dd476 100644 --- a/BTCPayServer/Views/Account/_WelcomeLayout.cshtml +++ b/BTCPayServer/Views/Account/_WelcomeLayout.cshtml @@ -2,7 +2,7 @@ @{ Layout = null; } - +@inject BTCPayServer.Services.BTCPayServerEnvironment env @@ -84,10 +84,20 @@
@RenderBody() + + @if (env.OnionUrl != null) + { +
+
+ +
+ +
+ }
- + @await Html.PartialAsync("_ValidationScriptsPartial") diff --git a/BTCPayServer/wwwroot/img/icons/Onion_Color.svg b/BTCPayServer/wwwroot/img/icons/Onion_Color.svg new file mode 100644 index 000000000..16e56c06f --- /dev/null +++ b/BTCPayServer/wwwroot/img/icons/Onion_Color.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +