mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Prettify the bitcoin core node page
This commit is contained in:
parent
b6c37a73b1
commit
232ceed8b0
3 changed files with 15 additions and 3 deletions
|
@ -601,7 +601,7 @@ namespace BTCPayServer.Controllers
|
|||
{
|
||||
ShowQR = showQR,
|
||||
WalletName = service.ServiceName,
|
||||
ServiceLink = service.ConnectionString.Server.AbsoluteUri
|
||||
ServiceLink = service.ConnectionString.Server.AbsoluteUri.WithoutEndingSlash()
|
||||
});
|
||||
}
|
||||
var connectionString = await service.ConnectionString.Expand(this.Request.GetAbsoluteUriNoPathBase(), service.Type);
|
||||
|
|
|
@ -132,6 +132,12 @@ namespace BTCPayServer
|
|||
return str;
|
||||
return $"/{str}";
|
||||
}
|
||||
public static string WithoutEndingSlash(this string str)
|
||||
{
|
||||
if (str.EndsWith("/", StringComparison.InvariantCulture))
|
||||
return str.Substring(0, str.Length - 1);
|
||||
return str;
|
||||
}
|
||||
|
||||
public static void SetHeaderOnStarting(this HttpResponse resp, string name, string value)
|
||||
{
|
||||
|
|
|
@ -27,9 +27,9 @@
|
|||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="form-group">
|
||||
<h5>QR Code connection</h5>
|
||||
<h5>Full node connection</h5>
|
||||
<p>
|
||||
<span>You can use QR Code to connect to @Model.WalletName with compatible wallets.<br /></span>
|
||||
<span>This page exposes information to connect remotely to your full node via the P2P protocol.</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -52,6 +52,12 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<h5>QR Code connection</h5>
|
||||
<p>
|
||||
<span>You can use QR Code to connect to @Model.WalletName with compatible wallets.<br /></span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@if (!Model.ShowQR)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue