From 8a9bea46039a6458da23fc290e3066b90870bdc6 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Tue, 20 Apr 2021 14:52:00 +0200 Subject: [PATCH] Wording and display improvements --- .../Views/Stores/SetupLightningNode.cshtml | 108 ++++++++++-------- 1 file changed, 59 insertions(+), 49 deletions(-) diff --git a/BTCPayServer/Views/Stores/SetupLightningNode.cshtml b/BTCPayServer/Views/Stores/SetupLightningNode.cshtml index 3f81d78b6..b70bbd90b 100644 --- a/BTCPayServer/Views/Stores/SetupLightningNode.cshtml +++ b/BTCPayServer/Views/Stores/SetupLightningNode.cshtml @@ -1,7 +1,7 @@ @model LightningNodeViewModel @{ Layout = "_LayoutWalletSetup.cshtml"; - ViewData.SetActivePageAndTitle(StoreNavPages.Index, "Configure your Lightning node", Context.GetStoreData().StoreName); + ViewData.SetActivePageAndTitle(StoreNavPages.Index, "Connect to a Lightning node", Context.GetStoreData().StoreName); } @section Navbar { @@ -59,14 +59,14 @@ list-style: none; padding-left: 0; } - #CustomSetup ul li code { + #CustomSetup ul li code, #CustomSetup ul li pre { color: var(--btcpay-code-color); } - #CustomSetup ul li > code { + #CustomSetup ul li > code, #CustomSetup ul pre { display: block; color: var(--btcpay-code-color); background: var(--btcpay-code-bg); - margin: .5rem 0; + margin: .25rem 0; padding: .75rem 1rem; border-radius: .25rem; } @@ -74,9 +74,9 @@
- + - +
@if (Model.CanUseInternalNode) { @@ -84,60 +84,70 @@ } else { -

Only administrators can use the internal Lightning node.

+

Your instance administrator has disabled the use of the Internal node for non-admin users.

}
- +
-

BTCPay Server currently supports:

+

+ BTCPay Server currently supports: + (click to show examples) +

    -
  • - c-lightning via TCP or unix domain socket connection: -
      -
    • - type=clightning;server=unix://root/.lightning/lightning-rpc -
    • -
    • - type=clightning;server=tcp://1.1.1.1:27743/ -
    • -
    +
  • + + via TCP or unix domain socket connection +
    +
      +
    • + type=clightning;server=unix://root/.lightning/lightning-rpc +
    • +
    • + type=clightning;server=tcp://1.1.1.1:27743/ +
    • +
    +
  • -
  • - Lightning Charge via HTTPS: -
      -
    • - type=charge;server=https://charge:8080/;api-token=myapitoken... -
    • -
    +
  • + + via HTTPS +
    +
      +
    • + type=charge;server=https://charge:8080/;api-token=myapitoken... +
    • +
    +
  • -
  • - Eclair via HTTPS: -
      -
    • - type=eclair;server=https://eclair:8080/;password=eclairpassword... -
    • -
    +
  • + + via HTTPS +
    +
      +
    • + type=eclair;server=https://eclair:8080/;password=eclairpassword... +
    • +
    +
  • -
  • - LND via the REST proxy: -
      -
    • - type=lnd-rest;server=https://mylnd:8080/;macaroon=abef263adfe... -
    • -
    • - type=lnd-rest;server=https://mylnd:8080/;macaroon=abef263adfe...;certthumbprint=abef263adfe... -
    • -
    - -
    -

    +

  • + + via the REST proxy +
    +
      +
    • + type=lnd-rest;server=https://mylnd:8080/;macaroon=abef263adfe... +
    • +
    • + type=lnd-rest;server=https://mylnd:8080/;macaroon=abef263adfe...;certthumbprint=abef263adfe... +
    • +
    +

    For the macaroon options you need to provide the admin.macaroon.
    The path to the LND data directory may vary, the following examples assume /root/.lnd.

    @@ -153,7 +163,7 @@
-
+