2022-06-14 07:36:22 +02:00
|
|
|
@model BTCPayServer.Components.StoreLightningServices.StoreLightningServicesViewModel
|
|
|
|
|
|
|
|
@if (Model.Services != null && Model.Services.Any())
|
|
|
|
{
|
|
|
|
<div id="StoreLightningServices-@Model.Store.Id" class="widget store-lightning-services">
|
|
|
|
<header class="mb-4">
|
|
|
|
<h6>Lightning Services</h6>
|
2022-07-04 04:03:16 +02:00
|
|
|
<a
|
|
|
|
asp-controller="UIPublicLightningNodeInfo"
|
|
|
|
asp-action="ShowLightningNodeInfo"app-top-items
|
|
|
|
asp-route-cryptoCode="@Model.CryptoCode"
|
|
|
|
asp-route-storeId="@Model.Store.Id"
|
|
|
|
target="_blank"
|
|
|
|
id="PublicNodeInfo">
|
|
|
|
Node Info
|
|
|
|
</a>
|
2022-06-14 07:36:22 +02:00
|
|
|
</header>
|
|
|
|
<div id="Services" class="services-list">
|
|
|
|
@foreach (var service in Model.Services)
|
|
|
|
{
|
|
|
|
@if (!string.IsNullOrEmpty(service.Error))
|
|
|
|
{
|
|
|
|
<div class="service" id="@($"Service-{service.ServiceName}")">
|
|
|
|
<img src="@($"~/img/{service.Type.ToLower()}.png")" asp-append-version="true" alt="@service.DisplayName" />
|
|
|
|
<small class="d-block mt-3 lh-sm fw-semibold text-danger">@service.Error</small>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
else if (string.IsNullOrEmpty(service.Link))
|
|
|
|
{
|
2022-06-29 23:31:11 +09:00
|
|
|
<a title="@service.DisplayName" asp-controller="UIServer" asp-action="Service" asp-route-serviceName="@service.ServiceName" asp-route-cryptoCode="@service.CryptoCode" class="service" id="@($"Service-{service.ServiceName}")">
|
2022-06-14 07:36:22 +02:00
|
|
|
<img src="@($"~/img/{service.Type.ToLower()}.png")" asp-append-version="true" alt="@service.DisplayName" />
|
|
|
|
</a>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2022-06-29 23:31:11 +09:00
|
|
|
<a title="@service.DisplayName" href="@service.Link" target="_blank" rel="noreferrer noopener" class="service" id="@($"Service-{service.ServiceName}")">
|
2022-06-14 07:36:22 +02:00
|
|
|
<img src="@($"~/img/{service.Type.ToLower()}.png")" asp-append-version="true" alt="@service.DisplayName" />
|
|
|
|
</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|