From 03f8d6693d2da08f6cecd5efbb5ffb5b36a3c3bb Mon Sep 17 00:00:00 2001 From: dstrukt Date: Thu, 18 Nov 2021 01:04:20 -0800 Subject: [PATCH] Improve Access Tokens View (#3118) Co-authored-by: Dennis Reimann --- BTCPayServer/Views/Stores/CreateToken.cshtml | 12 ++++++------ BTCPayServer/Views/Stores/ListTokens.cshtml | 19 +++++++++---------- .../Views/Stores/RequestPairing.cshtml | 12 +++++------- BTCPayServer/Views/Stores/ShowToken.cshtml | 4 ++-- 4 files changed, 22 insertions(+), 25 deletions(-) diff --git a/BTCPayServer/Views/Stores/CreateToken.cshtml b/BTCPayServer/Views/Stores/CreateToken.cshtml index 2dff14e32..c19d1a0f4 100644 --- a/BTCPayServer/Views/Stores/CreateToken.cshtml +++ b/BTCPayServer/Views/Stores/CreateToken.cshtml @@ -1,14 +1,13 @@ @model CreateTokenViewModel @{ Layout = "../Shared/_NavLayout.cshtml"; - ViewData.SetActivePageAndTitle(StoreNavPages.Tokens, "Create a new token", Context.GetStoreData()?.StoreName); + ViewData.SetActivePageAndTitle(StoreNavPages.Tokens, "Create New Token", Context.GetStoreData()?.StoreName); ViewBag.HidePublicKey = ViewBag.HidePublicKey ?? false; ViewBag.ShowStores = ViewBag.ShowStores ?? false; } -
-

@ViewData["PageTitle"]

+

@ViewData["PageTitle"]

@@ -23,12 +22,13 @@ {
- Keep empty for server-initiated pairing +

+ Keep empty for server-initiated pairing. +

} - @if (ViewBag.ShowStores) {
@@ -42,7 +42,7 @@ }
- +
diff --git a/BTCPayServer/Views/Stores/ListTokens.cshtml b/BTCPayServer/Views/Stores/ListTokens.cshtml index b87cee145..07ad0a5f6 100644 --- a/BTCPayServer/Views/Stores/ListTokens.cshtml +++ b/BTCPayServer/Views/Stores/ListTokens.cshtml @@ -18,10 +18,10 @@
-

@ViewData["PageTitle"]

+

@ViewData["PageTitle"]

- Create a new token + Create New Token
@@ -57,27 +57,27 @@ else {

- There are no access tokens yet. + No access tokens yet.

} -

Legacy API Keys

+

Legacy API Keys

Alternatively, you can use the invoice API by including the following HTTP Header in your requests:

Authorization: Basic @Model.EncodedApiKey

-
+
@if (string.IsNullOrEmpty(Model.ApiKey)) { - + } else { - - + + }
@@ -85,5 +85,4 @@
- - + \ No newline at end of file diff --git a/BTCPayServer/Views/Stores/RequestPairing.cshtml b/BTCPayServer/Views/Stores/RequestPairing.cshtml index 0d0da048d..9b3a94262 100644 --- a/BTCPayServer/Views/Stores/RequestPairing.cshtml +++ b/BTCPayServer/Views/Stores/RequestPairing.cshtml @@ -1,12 +1,10 @@ @model PairingModel @{ Layout = "../Shared/_NavLayout.cshtml"; - ViewData.SetActivePageAndTitle(StoreNavPages.Tokens, "Pairing permission", Context.GetStoreData()?.StoreName); + ViewData.SetActivePageAndTitle(StoreNavPages.Tokens, "Pairing Permission", Context.GetStoreData()?.StoreName); } -

@ViewData["PageTitle"]

-

Create and manage store settings.

- +

@ViewData["PageTitle"]

@@ -25,12 +23,12 @@
- +
- +
- + \ No newline at end of file diff --git a/BTCPayServer/Views/Stores/ShowToken.cshtml b/BTCPayServer/Views/Stores/ShowToken.cshtml index a1f3a0703..f2f33e1bd 100644 --- a/BTCPayServer/Views/Stores/ShowToken.cshtml +++ b/BTCPayServer/Views/Stores/ShowToken.cshtml @@ -4,11 +4,11 @@ ViewData.SetActivePageAndTitle(StoreNavPages.Tokens, "Access Tokens", Context.GetStoreData().StoreName); } -

@ViewData["PageTitle"]

+

@ViewData["PageTitle"]

-
Token information
+
Token Information
Label