mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-01 00:59:15 +01:00
* adds pay button icon adds more update icons * reduces update app titles * capitalize PP * more icons notification icon update adds more * Truncate long titles in nav * Adjust "off" color state for the wallet/lightning * Theme switch alignment * Update store selector * adds more space in store selector span * Prevent form zoom on mobile Safari * updates lightning + settings view * updates store icon * adjusts notification icon * removes notifications setting button icon * Update status colors * Fix Lightning nav markup * Prevent icons from shrinking * Move main menu styles to css * Remove max-width container for content area * Update headlines * Use fixed header on mobile * Extract custom pills component * Form field update Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
65 lines
2.6 KiB
Text
65 lines
2.6 KiB
Text
@using BTCPayServer.Lightning
|
|
@using BTCPayServer.Client
|
|
@model LightningViewModel
|
|
@{
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
ViewData["NavPartialName"] = "../UILightning/_Nav";
|
|
ViewData.SetActivePage(StoreNavPages.Lightning, $"{Model.CryptoCode} Lightning", Context.GetStoreData().Id);
|
|
}
|
|
|
|
<div class="mb-5">
|
|
<h3 class="mb-3">@ViewData["Title"]</h3>
|
|
<div class="mb-3">
|
|
<span class="me-3">@Model.LightningNodeType Node</span>
|
|
|
|
@if (Model.LightningNodeType != LightningNodeType.Internal)
|
|
{
|
|
<span class="me-3">
|
|
@if (LightningConnectionString.TryParse(Model.ConnectionString, out var cs))
|
|
{
|
|
@typeof(LightningConnectionType).DisplayName(cs.ConnectionType.ToString())
|
|
<span>(@cs.BaseUri)</span>
|
|
}
|
|
else
|
|
{
|
|
@Model.ConnectionString
|
|
}
|
|
</span>
|
|
}
|
|
|
|
<a
|
|
asp-controller="UIPublicLightningNodeInfo"
|
|
asp-action="ShowLightningNodeInfo"
|
|
asp-route-cryptoCode="@Model.CryptoCode"
|
|
asp-route-storeId="@Model.StoreId"
|
|
target="_blank">
|
|
Public Node Info
|
|
</a>
|
|
</div>
|
|
|
|
@if (Model.Services != null && Model.Services.Any())
|
|
{
|
|
<div permission="@Policies.CanModifyServerSettings" class="mt-4">
|
|
<h3 class="mb-3">Services</h3>
|
|
<div id="Services" class="services-list">
|
|
@foreach (var service in Model.Services)
|
|
{
|
|
@if (string.IsNullOrEmpty(service.Link))
|
|
{
|
|
<a asp-controller="UIServer" asp-action="Service" asp-route-serviceName="@service.ServiceName" asp-route-cryptoCode="@service.CryptoCode" class="service" id="@($"Service-{service.ServiceName}")">
|
|
<img src="@($"~/img/{service.Type.ToLower()}.png")" asp-append-version="true" alt="@service.DisplayName" />
|
|
<h6>@service.DisplayName</h6>
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a href="@service.Link" target="_blank" rel="noreferrer noopener" class="service" id="@($"Service-{service.ServiceName}")">
|
|
<img src="@($"~/img/{service.Type.ToLower()}.png")" asp-append-version="true" alt="@service.DisplayName" />
|
|
<h6>@service.DisplayName</h6>
|
|
</a>
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|